@@ -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 }
0 commit comments