I currently have a site that generates user-created images via php ImageMagick. While we're all waiting for the arrival of the new Pinterest API, is there a way to automate the posting of these user-created images to my own Pinterest account? I'm looking for a way to not only autofill the form elements used by the PinIt button but to automatically submit the user-created images to my Pinterest account.
$p = new Pinterest_API(); $p->fetch_access_token($client_id, $client_secret, $username, $password); $resp = $p->upload_pin(array( 'board' => $board_id, 'details' => 'another test', 'image' => "@".realpath('../img/37.jpg') )); PHP: You can download the class on GitHub github DOT com/kellan/pinterest.api.php/blob/master/pinterest.api.php
Great work figuring out the API, but can you clarify a little more on client ID & secret? Do they uniquely identify a user or an authorized app?