@@ -277,14 +277,17 @@ public function getLocationInfo($location_id) {
277
277
* @throws Exceptions\NotFoundException
278
278
* @throws Exceptions\BadResponseException
279
279
*/
280
- public function getLocationMedia ($ location_id , $ page =null , $ max_id =null ) {
280
+ public function getLocationMedia ($ location_id , $ page =null , $ max_id =null , $ tab = null ) {
281
281
$ payload = ['id ' => $ location_id ];
282
282
if ($ page ) {
283
283
$ payload ['page ' ] = $ page ;
284
284
}
285
285
if ($ max_id ) {
286
286
$ payload ['max_id ' ] = $ max_id ;
287
287
}
288
+ if ($ tab ) {
289
+ $ payload ['tab ' ] = $ tab ;
290
+ }
288
291
return $ this ->request ('instagram/location/get_media ' , $ payload );
289
292
}
290
293
@@ -367,6 +370,18 @@ public function getAudioMedia($audio_id, $max_id=null) {
367
370
return $ this ->request ('instagram/audio/get_media ' , $ payload );
368
371
}
369
372
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
+
370
385
/**
371
386
* @throws Exceptions\NotFoundException
372
387
* @throws Exceptions\BadResponseException
@@ -416,4 +431,15 @@ public function searchAudios($query) {
416
431
'query ' => $ query ,
417
432
]);
418
433
}
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
+ }
419
445
}
0 commit comments