Skip to content

Instantly share code, notes, and snippets.

View joshrathke's full-sized avatar

Josh Rathke joshrathke

View GitHub Profile
@joshrathke
joshrathke / instagram_advanced_query.php
Last active August 29, 2015 14:21
This gist shows a workaround for getting media from a specific author, tagged with a specific hashtag. This does have the potential to cause a very long request time, and is best to be used in conjunction with uncommon and very specific hashtags for "seemingly" normal response times.
<?php
/**
* By default instagram doesn't allow us to query for more than
* attribute, such as media posted by a specific author tagged with
* a specific tag. In order to accomplish this we will acquire all of
* the media tagged with the tag we are looking for and then filter it
* down based on the user.
*/
@joshrathke
joshrathke / get_tags_related_to_tax_term.php
Last active October 4, 2015 19:26
Get Tags Associated with a Custom Taxonomy Term