PHP 클래스 Larabros\Elogram\Repositories\UsersRepository

저자: Hassan Khan ([email protected])
상속: extends AbstractRepository
파일 보기 프로젝트 열기: larabros/elogram

공개 메소드들

메소드 설명
find ( string $username ) : Response | null Searches for and returns a single user's information. If no results are found, null is returned.
followedBy ( ) : Response Get the list of users this user is followed by.
follows ( ) : Response Get the list of users this user follows.
get ( string $id = 'self' ) : Response Get information about a user.
getLikedMedia ( integer | null $count = null, integer | null $maxLikeId = null ) : Response Get the list of recent media liked by the owner of the access token.
getMedia ( string $id = 'self', integer | null $count = null, integer | null $minId = null, integer | null $maxId = null ) : Response Get the most recent media published by a user.
getRelationship ( string $targetUserId ) : Response Get information about the relationship of the owner of the access token to another user.
requestedBy ( ) : Response List the users who have requested this user's permission to follow.
search ( string $query, integer | null $count = null ) : Response Get a list of users matching the query.
setRelationship ( string $targetUserId, string $action ) : Response Modify the relationship between the owner of the access token and the target user.

메소드 상세

find() 공개 메소드

Searches for and returns a single user's information. If no results are found, null is returned.
public find ( string $username ) : Response | null
$username string A username to search for
리턴 Larabros\Elogram\Http\Response | null

followedBy() 공개 메소드

Get the list of users this user is followed by.
public followedBy ( ) : Response
리턴 Larabros\Elogram\Http\Response

follows() 공개 메소드

Get the list of users this user follows.
public follows ( ) : Response
리턴 Larabros\Elogram\Http\Response

get() 공개 메소드

Get information about a user.
public get ( string $id = 'self' ) : Response
$id string The ID of the user. Default is ``self``
리턴 Larabros\Elogram\Http\Response

getLikedMedia() 공개 메소드

Get the list of recent media liked by the owner of the access token.
public getLikedMedia ( integer | null $count = null, integer | null $maxLikeId = null ) : Response
$count integer | null Count of media to return
$maxLikeId integer | null Return media liked before this id
리턴 Larabros\Elogram\Http\Response

getMedia() 공개 메소드

Get the most recent media published by a user.
public getMedia ( string $id = 'self', integer | null $count = null, integer | null $minId = null, integer | null $maxId = null ) : Response
$id string The ID of the user. Default is ``self``
$count integer | null Count of media to return
$minId integer | null Return media later than this min_id
$maxId integer | null Return media earlier than this max_id
리턴 Larabros\Elogram\Http\Response

getRelationship() 공개 메소드

Get information about the relationship of the owner of the access token to another user.
public getRelationship ( string $targetUserId ) : Response
$targetUserId string The ID of the target user
리턴 Larabros\Elogram\Http\Response

requestedBy() 공개 메소드

List the users who have requested this user's permission to follow.
public requestedBy ( ) : Response
리턴 Larabros\Elogram\Http\Response

setRelationship() 공개 메소드

Modify the relationship between the owner of the access token and the target user.
public setRelationship ( string $targetUserId, string $action ) : Response
$targetUserId string The ID of the target user
$action string Can be one of: ``follow | unfollow | approve | ignore``
리턴 Larabros\Elogram\Http\Response