@@ -69,6 +69,42 @@ public function getUserMedia($user_id, $count=12, $max_id=null) {
69
69
return $ this ->request ('instagram/user/get_media ' , $ payload );
70
70
}
71
71
72
+ /**
73
+ * @throws Exceptions\NotFoundException
74
+ * @throws Exceptions\BadResponseException
75
+ */
76
+ public function getUserClips ($ user_id , $ max_id =null ) {
77
+ $ payload = ['id ' => $ user_id ];
78
+ if ($ max_id ) {
79
+ $ payload ['max_id ' ] = $ max_id ;
80
+ }
81
+ return $ this ->request ('instagram/user/get_clips ' , $ payload );
82
+ }
83
+
84
+ /**
85
+ * @throws Exceptions\NotFoundException
86
+ * @throws Exceptions\BadResponseException
87
+ */
88
+ public function getUserGuides ($ user_id , $ max_id =null ) {
89
+ $ payload = ['id ' => $ user_id ];
90
+ if ($ max_id ) {
91
+ $ payload ['max_id ' ] = $ max_id ;
92
+ }
93
+ return $ this ->request ('instagram/user/get_guides ' , $ payload );
94
+ }
95
+
96
+ /**
97
+ * @throws Exceptions\NotFoundException
98
+ * @throws Exceptions\BadResponseException
99
+ */
100
+ public function getUserTags ($ user_id , $ count =12 , $ max_id =null ) {
101
+ $ payload = ['id ' => $ user_id , 'count ' => $ count ];
102
+ if ($ max_id ) {
103
+ $ payload ['max_id ' ] = $ max_id ;
104
+ }
105
+ return $ this ->request ('instagram/user/get_tags ' , $ payload );
106
+ }
107
+
72
108
/**
73
109
* @throws Exceptions\NotFoundException
74
110
* @throws Exceptions\BadResponseException
@@ -123,6 +159,36 @@ public function getUserStories($user_id) {
123
159
return $ this ->getUserStoriesBulk ([$ user_id ]);
124
160
}
125
161
162
+ /**
163
+ * @throws Exceptions\NotFoundException
164
+ * @throws Exceptions\BadResponseException
165
+ */
166
+ public function getUserHighlights ($ user_id ) {
167
+ return $ this ->request ('instagram/user/get_highlights ' , [
168
+ 'id ' => $ user_id ,
169
+ ]);
170
+ }
171
+
172
+ /**
173
+ * @throws Exceptions\NotFoundException
174
+ * @throws Exceptions\BadResponseException
175
+ */
176
+ public function getUserLive ($ user_id ) {
177
+ return $ this ->request ('instagram/user/get_live ' , [
178
+ 'id ' => $ user_id ,
179
+ ]);
180
+ }
181
+
182
+ /**
183
+ * @throws Exceptions\NotFoundException
184
+ * @throws Exceptions\BadResponseException
185
+ */
186
+ public function getUserSimilarAccounts ($ user_id ) {
187
+ return $ this ->request ('instagram/user/get_similar_accounts ' , [
188
+ 'id ' => $ user_id ,
189
+ ]);
190
+ }
191
+
126
192
/**
127
193
* @throws Exceptions\NotFoundException
128
194
* @throws Exceptions\BadResponseException
@@ -157,6 +223,104 @@ public function getMediaComments($media_id, $can_support_threading=true, $min_id
157
223
return $ this ->request ('instagram/media/get_comments ' , $ payload );
158
224
}
159
225
226
+ /**
227
+ * @throws Exceptions\NotFoundException
228
+ * @throws Exceptions\BadResponseException
229
+ */
230
+ public function getMediaShortcodeById ($ media_id ) {
231
+ return $ this ->request ('instagram/media/get_shortcode_by_id ' , [
232
+ 'id ' => $ media_id ,
233
+ ]);
234
+ }
235
+
236
+ /**
237
+ * @throws Exceptions\NotFoundException
238
+ * @throws Exceptions\BadResponseException
239
+ */
240
+ public function getMediaIdByShortcode ($ shortcode ) {
241
+ return $ this ->request ('instagram/media/get_id_by_shortcode ' , [
242
+ 'shortcode ' => $ shortcode ,
243
+ ]);
244
+ }
245
+
246
+ /**
247
+ * @throws Exceptions\NotFoundException
248
+ * @throws Exceptions\BadResponseException
249
+ */
250
+ public function getGuideInfo ($ guide_id ) {
251
+ return $ this ->request ('instagram/guide/get_info ' , [
252
+ 'id ' => $ guide_id ,
253
+ ]);
254
+ }
255
+
256
+ /**
257
+ * @throws Exceptions\NotFoundException
258
+ * @throws Exceptions\BadResponseException
259
+ */
260
+ public function getLocationInfo ($ location_id ) {
261
+ return $ this ->request ('instagram/location/get_info ' , [
262
+ 'id ' => $ location_id ,
263
+ ]);
264
+ }
265
+
266
+ /**
267
+ * @throws Exceptions\NotFoundException
268
+ * @throws Exceptions\BadResponseException
269
+ */
270
+ public function getLocationMedia ($ location_id , $ page =null , $ max_id =null ) {
271
+ $ payload = ['id ' => $ location_id ];
272
+ if ($ page ) {
273
+ $ payload ['page ' ] = $ page ;
274
+ }
275
+ if ($ max_id ) {
276
+ $ payload ['max_id ' ] = $ max_id ;
277
+ }
278
+ return $ this ->request ('instagram/location/get_media ' , $ payload );
279
+ }
280
+
281
+ /**
282
+ * @throws Exceptions\NotFoundException
283
+ * @throws Exceptions\BadResponseException
284
+ */
285
+ public function getHashtagInfo ($ name ) {
286
+ return $ this ->request ('instagram/hashtag/get_info ' , [
287
+ 'name ' => $ name ,
288
+ ]);
289
+ }
290
+
291
+ /**
292
+ * @throws Exceptions\NotFoundException
293
+ * @throws Exceptions\BadResponseException
294
+ */
295
+ public function getHashtagMedia ($ name , $ page =null , $ max_id =null ) {
296
+ $ payload = ['name ' => $ name ];
297
+ if ($ page ) {
298
+ $ payload ['page ' ] = $ page ;
299
+ }
300
+ if ($ max_id ) {
301
+ $ payload ['max_id ' ] = $ max_id ;
302
+ }
303
+ return $ this ->request ('instagram/hashtag/get_media ' , $ payload );
304
+ }
305
+
306
+ /**
307
+ * @throws Exceptions\NotFoundException
308
+ * @throws Exceptions\BadResponseException
309
+ */
310
+ public function getHighlightStoriesBulk ($ highlight_ids ) {
311
+ return $ this ->request ('instagram/highlight/get_stories ' , [
312
+ 'ids ' => $ highlight_ids ,
313
+ ]);
314
+ }
315
+
316
+ /**
317
+ * @throws Exceptions\NotFoundException
318
+ * @throws Exceptions\BadResponseException
319
+ */
320
+ public function getHighlightStories ($ highlight_id ) {
321
+ return $ this ->getHighlightStoriesBulk ([$ highlight_id ]);
322
+ }
323
+
160
324
/**
161
325
* @throws Exceptions\NotFoundException
162
326
* @throws Exceptions\BadResponseException
@@ -168,4 +332,16 @@ public function getCommentLikes($comment_id, $max_id=null) {
168
332
}
169
333
return $ this ->request ('instagram/comment/get_likes ' , $ payload );
170
334
}
335
+
336
+ /**
337
+ * @throws Exceptions\NotFoundException
338
+ * @throws Exceptions\BadResponseException
339
+ */
340
+ public function getAudioMedia ($ audio_id , $ max_id =null ) {
341
+ $ payload = ['id ' => $ audio_id ];
342
+ if ($ max_id ) {
343
+ $ payload ['max_id ' ] = $ max_id ;
344
+ }
345
+ return $ this ->request ('instagram/audio/get_media ' , $ payload );
346
+ }
171
347
}
0 commit comments