Pinterest API: Getting 25 Most Recent Pins

Posted by on in PHP
  1. Signup for an account at Mashape and ;
  2. your copy of Unirest PHP ;
  3. Use this snippet to retrieve 25 most recent pins:

You can use these strings within the For loop:

$pins->body[$i]->src; // path to pin's image 
$pins->body[$i]->href; // link to pin's url, eg. /pin/48343395973529582/
$pins->body[$i]->desc; // pin's description
$pins->body[$i]->board->href // link to this pin's board
$pins->body[$i]->board->name // corresponding board's name