Closed nWidart closed 8 years ago
Pinterest only returns a limited set of data. If you want more you can specify this through the data parameter in the API request.
Though, looking at your response the above wouldn't be correct. I've just checked the API endpoint through the API explorer and it returns a limited set of attributes (which would make the above true again). How does the url you're requesting look like? Mine was:
https://api.pinterest.com/v1/me/pins/?access_token=[xxx]
Oh correct, the url has indeed an additional fields
parameter
v1/me/pins/?access_token=TOKEN&fields=id%2Clink%2Cnote%2Curl%2Ccounts
I see it is even documented on the readme!
Running the following now returns everything:
$this->pinterest->users->getMePins(['fields' => 'created_at,link,creator,board,note,color,counts,media,attribution,image,metadata']);
Sorry for the trouble!
Thank you for the explanation. :smile:
Hello,
The
pinterest->users->getMePins()
and thepinterest->pins->get($pinId)
aren't returning the full data from the pinterest API. If I browse to the endpoint in browser, to the corresponding endpoint, I get more data back than the returned data in code.Ie: in browser:
Using the package:
Did I miss something ?
Thanks