Larabros\Elogram\Repositories\UsersRepository¶
-
class
UsersRepository
¶ UsersRepository
-
property
client
¶ protected AdapterInterface
-
get
($id = 'self')¶ Get information about a user.
Parameters: - $id (string) – The ID of the user. Default is
self
Returns: Response
- $id (string) – The ID of the user. Default is
-
getMedia
($id = 'self', $count = null, $minId = null, $maxId = null)¶ Get the most recent media published by a user.
Parameters: - $id –
- $count (int|null) – Count of media to return
- $minId (int|null) – Return media later than this min_id
- $maxId (int|null) – Return media earlier than this max_id
Returns: Response
-
getLikedMedia
($count = null, $maxLikeId = null)¶ Get the list of recent media liked by the owner of the access token.
Parameters: - $count (int|null) – Count of media to return
- $maxLikeId (int|null) – Return media liked before this id
Returns: Response
-
search
($query, $count = null)¶ Get a list of users matching the query.
Parameters: - $query –
- $count –
Returns: Response
-
find
($username)¶ Searches for and returns a single user’s information. If no results are found,
null
is returned.Parameters: - $username (string) – A username to search for
Returns: Response|null
-
follows
()¶ Get the list of users this user follows.
Returns: Response
-
followedBy
()¶ Get the list of users this user is followed by.
Returns: Response
-
requestedBy
()¶ List the users who have requested this user’s permission to follow.
Returns: Response
-
getRelationship
($targetUserId)¶ Get information about the relationship of the owner of the access token to another user.
Parameters: - $targetUserId (string) – The ID of the target user
Returns: Response
-
setRelationship
($targetUserId, $action)¶ Modify the relationship between the owner of the access token and the target user.
Parameters: - $targetUserId (string) – The ID of the target user
- $action (string) – Can be one of:
follow | unfollow | approve | ignore
Returns: Response
-
__construct
(AdapterInterface $client)¶ Creates a new instance of
AbstractRepository
.Parameters: - $client (AdapterInterface) –
-
property