Skip to content

Instantly share code, notes, and snippets.

View cosenary's full-sized avatar

Christian Metz cosenary

View GitHub Profile
@cosenary
cosenary / follower.json
Last active December 2, 2020 15:28
Instagram display user follower example.Simply replace the success.php file in the example folder by this one and fill in your API credentials.
{
"username": "moo",
"bio": "We print things.",
"website": "http://www.moo.com",
"profile_picture": "http://images.ak.instagram.com/profiles/profile_7927894_75sq_1378988556.jpg",
"full_name": "MOO Print",
"id": 7927894
}
@cosenary
cosenary / follow.php
Last active December 25, 2020 07:13
Instagram API class - follow user example
<?php
require 'Instagram.php';
use MetzWeb\Instagram\Instagram;
$instagram = new Instagram(array(
'apiKey' => 'YOUR_APP_KEY',
'apiSecret' => 'YOUR_APP_SECRET',
'apiCallback' => 'YOUR_APP_CALLBACK' // must point to success.php
));
@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
*/