Larabros\Elogram\Repositories\CommentsRepository¶
-
class
CommentsRepository
¶ CommentsRepository
-
property
client
¶ protected AdapterInterface
-
get
($mediaId)¶ Get a list of recent comments on a media object.
Parameters: - $mediaId (int) – The ID of the media object
Returns: Response
-
create
($mediaId, $text)¶ Create a comment on a media object using the following rules:
- 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.
Parameters: - $mediaId –
- $text (string) – Text to post as a comment on the media object
Returns: Response
-
delete
($mediaId, $commentId)¶ Remove a comment either on the owner of the access token’s media object or authored by the owner of the access token.
Parameters: - $mediaId –
- $commentId (string) – The ID of the comment
Returns: Response
-
__construct
(AdapterInterface $client)¶ Creates a new instance of
AbstractRepository
.Parameters: - $client (AdapterInterface) –
-
property