Skip to content

Instantly share code, notes, and snippets.

View cosenary's full-sized avatar

Christian Metz cosenary

View GitHub Profile
@cosenary
cosenary / ratelimit.php
Created November 8, 2014 16:10
Instagram PHP API - Receive ratelimit header
<?php
/**
* Instagram PHP API
*
* @link https://github.com/cosenary/Instagram-PHP-API
* @author Christian Metz
* @since 8.11.2014
*/
@cosenary
cosenary / usermedia.php
Last active May 26, 2017 07:17
Load user's public Instagram media
<?php
/**
* Instagram PHP API
* Example for using the getUserMedia() method
*
* @link https://github.com/cosenary/Instagram-PHP-API
* @author Christian Metz
* @since 4.04.2014
*/
@cosenary
cosenary / instagramproxy.php
Created April 6, 2015 10:07
Instagram OAuth proxy
<?php
// Registered Instagram redirect URI: http://example.com/instagramproxy.php
// Custom YOUR_APP_CALLBACK redirect URI: http://example.com/instagramproxy.php?redirect=http://foo.com
// receive OAuth code parameter
$code = $_GET['code'];
$redirectHost = $_GET['redirect'];
$instagramEndpoint = $redirectHost . "/success.php?code=" . $code;