PHP 클래스 Larabros\Elogram\Repositories\CommentsRepository

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

공개 메소드들

메소드 설명
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.

메소드 상세

create() 공개 메소드

- 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
리턴 Larabros\Elogram\Http\Response

delete() 공개 메소드

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
리턴 Larabros\Elogram\Http\Response

get() 공개 메소드

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