Skip to content

Commit 8366b98

Browse files
committed
1.0.4
1 parent 49666fb commit 8366b98

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/InstagramAPI.php

+12
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,18 @@ public function getCommentLikes($comment_id, $max_id=null) {
343343
return $this->request('instagram/comment/get_likes', $payload);
344344
}
345345

346+
/**
347+
* @throws Exceptions\NotFoundException
348+
* @throws Exceptions\BadResponseException
349+
*/
350+
public function getCommentReplies($comment_id, $media_id, $max_id=null) {
351+
$payload = ['id' => $comment_id, 'media_id' => $media_id];
352+
if ($max_id) {
353+
$payload['max_id'] = $max_id;
354+
}
355+
return $this->request('instagram/comment/get_replies', $payload);
356+
}
357+
346358
/**
347359
* @throws Exceptions\NotFoundException
348360
* @throws Exceptions\BadResponseException

0 commit comments

Comments
 (0)