php - Instagram API - Retrieve Only Videos -


i need retrieve videos tagged hashtag. understand there isn't way retrieve videos, how parse through json object , use videos? i've been examining array , don't see field reliably use determine if result video or photo (ie, like: ['type'] => 'image' helpful, if existed).

to fair, huge array, , missing obvious.

so: there way parse through results , use videos? (i'd put results in new array use)

thanks in advance!

apparently missing it! not there way it, it's hypothetical way asked about. there's field called ['type'] can equal 'video' or 'image' (or others, possibly).

so, looking same thing me, might want write like:

foreach ($obj->data $post) {      // check media type , skip result if      $media_type = $post->type;      if($media_type != 'video'){         continue;     } } 

Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

order - Notification for user in user account opencart -