Skip to content

Commit 4d52fe8

Browse files
committed
1.0.9
1 parent 999cb7d commit 4d52fe8

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

src/InstagramAPI.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,16 @@ public function getMediaLikes($shortcode, $count=12, $max_id=null) {
221221
return $this->request('instagram/media/get_likes', $payload);
222222
}
223223

224+
/**
225+
* @throws Exceptions\NotFoundException
226+
* @throws Exceptions\BadResponseException
227+
*/
228+
public function getMediaLikesById($media_id) {
229+
return $this->request('instagram/media/get_likes_by_id', [
230+
'id' => $media_id,
231+
]);
232+
}
233+
224234
/**
225235
* @throws Exceptions\NotFoundException
226236
* @throws Exceptions\BadResponseException
@@ -382,6 +392,16 @@ public function getAudioMediaByCanonicalId($audio_canonical_id, $max_id=null) {
382392
return $this->request('instagram/audio/get_media_by_canonical_id', $payload);
383393
}
384394

395+
/**
396+
* @throws Exceptions\NotFoundException
397+
* @throws Exceptions\BadResponseException
398+
*/
399+
public function getLiveInfo($broadcast_id) {
400+
return $this->request('instagram/live/get_info', [
401+
'id' => $broadcast_id,
402+
]);
403+
}
404+
385405
/**
386406
* @throws Exceptions\NotFoundException
387407
* @throws Exceptions\BadResponseException

src/RocketAPI.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class RocketAPI {
55
private $base_url = "https://v1.rocketapi.io/";
66
private $token;
77
private $max_timeout = 30;
8-
private $version = "1.0.8";
8+
private $version = "1.0.9";
99
private $is_debug = false; // Set true if you want to debug your requests
1010

1111
public function __construct($token, $is_debug = false) {

0 commit comments

Comments
 (0)