public function Comments::getComments in Instagram API 8
Get a list of recent comments on your media object.
Parameters
string $mediaId: Media ID.
bool $cacheable: Cacheable.
Return value
array|bool Response array. https://api.instagram.com/v1/media/{media-id}/comments?access_token=ACCESS-TOKEN
See also
https://www.instagram.com/developer/endpoints/media/
File
- src/
Service/ Comments.php, line 57
Class
- Comments
- Class Comments.
Namespace
Drupal\instagram_api\ServiceCode
public function getComments($mediaId, $cacheable = TRUE) {
$response = $this->client
->request('media/' . $mediaId . '/comments', [], $cacheable);
if ($response) {
return $response;
}
return FALSE;
}