Skip to content

Commit 999cb7d

Browse files
committed
1.0.8
1 parent ec08b51 commit 999cb7d

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

src/InstagramAPI.php

+27-1
Original file line numberDiff line numberDiff line change
@@ -277,14 +277,17 @@ public function getLocationInfo($location_id) {
277277
* @throws Exceptions\NotFoundException
278278
* @throws Exceptions\BadResponseException
279279
*/
280-
public function getLocationMedia($location_id, $page=null, $max_id=null) {
280+
public function getLocationMedia($location_id, $page=null, $max_id=null, $tab=null) {
281281
$payload = ['id' => $location_id];
282282
if ($page) {
283283
$payload['page'] = $page;
284284
}
285285
if ($max_id) {
286286
$payload['max_id'] = $max_id;
287287
}
288+
if ($tab) {
289+
$payload['tab'] = $tab;
290+
}
288291
return $this->request('instagram/location/get_media', $payload);
289292
}
290293

@@ -367,6 +370,18 @@ public function getAudioMedia($audio_id, $max_id=null) {
367370
return $this->request('instagram/audio/get_media', $payload);
368371
}
369372

373+
/**
374+
* @throws Exceptions\NotFoundException
375+
* @throws Exceptions\BadResponseException
376+
*/
377+
public function getAudioMediaByCanonicalId($audio_canonical_id, $max_id=null) {
378+
$payload = ['id' => $audio_canonical_id];
379+
if ($max_id) {
380+
$payload['max_id'] = $max_id;
381+
}
382+
return $this->request('instagram/audio/get_media_by_canonical_id', $payload);
383+
}
384+
370385
/**
371386
* @throws Exceptions\NotFoundException
372387
* @throws Exceptions\BadResponseException
@@ -416,4 +431,15 @@ public function searchAudios($query) {
416431
'query' => $query,
417432
]);
418433
}
434+
435+
436+
/**
437+
* @throws Exceptions\NotFoundException
438+
* @throws Exceptions\BadResponseException
439+
*/
440+
public function searchClips($query) {
441+
return $this->request('instagram/media/search_clips', [
442+
'query' => $query,
443+
]);
444+
}
419445
}

src/RocketAPI.php

+1-1
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.7";
8+
private $version = "1.0.8";
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)