dirkgroenen / pinterest-api-php

A PHP wrapper for the official Pinterest API. :pushpin:
https://developers.pinterest.com/docs/getting-started/introduction/
Apache License 2.0
173 stars 76 forks source link

Pinterest error (code: 401) with message: Authorization failed #44

Closed margibs closed 8 years ago

margibs commented 8 years ago

Hi Still new to Pinterest API, btw loving your work on this PHP wrapper for Pinterest API. I always get this error when I create pins on my board.

" Pinterest error (code: 401) with message: Authorization failed "

I just copy your code to test

$pinterest->pins->create(array( "note" => "Test board from API", "image_url" => "https://download.unsplash.com/photo-1438216983993-cdcd7dea84ce", "board" => "margibs_hbb/web-development" ));

The board is already existing on my account and when I run this code: $me = $pinterest->users->me(); echo $me;

it works fine, I already got my Access Token, I don't know what really the problem is or does it matter if the app is still "In development"? Thanks hope to hear from you soon

NOTE: sorry about this issue was able to fixed it please ignore.