PHP Класс Larabros\Elogram\Repositories\UsersRepository

Автор: Hassan Khan ([email protected])
Наследование: extends AbstractRepository
Показать файл Открыть проект

Открытые методы

Метод Описание
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