Skip to content

Instantly share code, notes, and snippets.

@mikekoro
Last active December 23, 2015 01:09
Show Gist options
  • Save mikekoro/6558556 to your computer and use it in GitHub Desktop.
Save mikekoro/6558556 to your computer and use it in GitHub Desktop.
require_once ( 'Unirest.php' );
$response = Unirest::get(
"https://ismaelc-pinterest.p.mashape.com/pins?u=mccaincanada",
array(
"X-Mashape-Authorization" => "unirest_apikey"
));
$pins = json_decode($response->raw_body);
for($i=0;$i<$pins->meta->count;$i++) {
// do stuff
// $pins->body[$i]->src
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment