2

I have Googled and searched on stackoverflow but could not find the answer.

I am writing an app, and this needs access to the Pinterest API. This is my github repo: https://github.com/kellan/pinterest.api.php

$p = new Pinterest_API();
$p->fetch_access_token($client_id, $client_secret, $username, $password);
$resp = $p->some_api_call($args);

But i dont know where to find $client_id and $client_secret?

Brian Noah
  • 2,962
  • 18
  • 27
Nguyen Nam
  • 21
  • 1
  • 1
  • 3
  • @Emil doubtful, seeing as the github repo he is linking to wasn't developed by Pinterest, it's 3rd party, Kellan Elliott-McCrea's. – Neil Hillman Apr 07 '13 at 18:05

3 Answers3

2

Go here, click Generate, and get an access token: https://developers.pinterest.com/tools/access_token/

Example: get statuses using: https://api.pinterest.com/v1/me/pins/?access_token=TOKEN&fields=id,creator,note&limit=2

See docs for extra parameters and requests: https://developers.pinterest.com/docs/api/overview/

ThomasAFink
  • 1,257
  • 14
  • 25
1

As far as I'm aware, the Pinterest API has been taken down. I even got a take-down notice on my Pinterest Chrome extension.

Brian Noah
  • 2,962
  • 18
  • 27
1

Yep, Pinterest API has been taken down. All my apps were affected as well.

This v1 api link now only shows hyphen, dash on its count

http://api.pinterest.com/v1/urls/count.json?callback=receiveCount&url=http://facebook.com

We can only wait till its back. I bookmarked your question and will try to update you when its back.

fedmich
  • 5,343
  • 3
  • 37
  • 52
  • Nice, thanks for notifying us that it works again, +1 for that ;) – fedmich Feb 08 '13 at 14:10
  • Hey Fedmich I need some pointers on accessing pinterest through api..any pointers? specially related to search – Sudh Oct 04 '13 at 07:10
  • Hey Sudh, at the moment, there are still no official docs for Pinterest API. this is undocumented and was taken from looking at their pinterest button. – fedmich Oct 04 '13 at 08:14