PHP Class Larabros\Elogram\Repositories\CommentsRepository

Inheritance: extends AbstractRepository
Show file Open project: larabros/elogram

Public Methods

Method Description
create ( integer $mediaId, string $text ) : Response Create a comment on a media object using the following rules:
delete ( integer $mediaId, string $commentId ) : Response Remove a comment either on the owner of the access token's media object or authored by the owner of the access token.
get ( integer $mediaId ) : Response Get a list of recent comments on a media object.

Method Details

create() public method

- The total length of the comment cannot exceed 300 characters. - The comment cannot contain more than 4 hashtags. - The comment cannot contain more than 1 URL. - The comment cannot consist of all capital letters.
public create ( integer $mediaId, string $text ) : Response
$mediaId integer The ID of the media object
$text string Text to post as a comment on the media object
return Larabros\Elogram\Http\Response

delete() public method

Remove a comment either on the owner of the access token's media object or authored by the owner of the access token.
public delete ( integer $mediaId, string $commentId ) : Response
$mediaId integer The ID of the media object
$commentId string The ID of the comment
return Larabros\Elogram\Http\Response

get() public method

Get a list of recent comments on a media object.
public get ( integer $mediaId ) : Response
$mediaId integer The ID of the media object
return Larabros\Elogram\Http\Response