Comments (12)
Still has this problem in last verison
from pinterest-api-php.
I think that problem is in class: src/Pinterest/Utils/CurlBuilder.php, method: execFollow
line: 205
$response = curl_exec($rch);
First request in loop returns:
HTTP/1.1 100 Continue
HTTP/1.1 301 Moved Permanently
<title>Redirecting...</title>
Accept-Ranges: bytes
Cache-Control: private
Content-Type: text/html; charset=utf-8
Location: https://api.pinterest.com/v1/boards/
Server: nginx
X-Pinterest-RID: 682442903996
X-Varnish: 4209913906
Content-Length: 279
Date: Mon, 01 Feb 2016 17:47:16 GMT
Connection: keep-aliveRedirecting...
You should be redirected automatically to target URL: https://api.pinterest.com/v1/boards/. If not click the link.
The second one returns:
HTTP/1.1 100 Continue
HTTP/1.1 401 Unauthorized
Accept-Ranges: bytes
Cache-Control: private
Content-Type: application/json
Pinterest-Generated-By: devplatform-devapi-prod-be24d169
Pinterest-Version: f2fe346
Server: nginx
X-Content-Type-Options: nosniff
X-Pinterest-RID: 140850051584
X-Varnish: 2750063476
Content-Length: 177
Date: Mon, 01 Feb 2016 17:48:11 GMT
Connection: close{"status": "failure", "code": 3, "host": "devplatform-devapi-prod-be24d169", "generated_at": "Mon, 01 Feb 2016 17:48:11 +0000", "message": "Authorization failed.", "data": null}
The same issue with create pin.
from pinterest-api-php.
Sounds like the auth header isn't parsed to the second request, I'll check it out.
from pinterest-api-php.
The same issue with delete board, get remaining calls etc.
from pinterest-api-php.
Looking into it right now. The execFollow function has been a copy-paste duo the lack of time, I'm polishing it at the moment.
from pinterest-api-php.
Fixed in 0.2.8
from pinterest-api-php.
Unfortunately issue is still actual for me
from pinterest-api-php.
Nothing changed in the response or something else?
from pinterest-api-php.
I've just tested it again and everything seems to work fine for me. You can find the code I'm using to test with in the ./demo directory.
from pinterest-api-php.
Problem was on the local machine. On dev server everything fine. Thanks for fix.
from pinterest-api-php.
👍
from pinterest-api-php.
I am facing the same problem. Please help!
from pinterest-api-php.
Related Issues (20)
- Fatal error Pinterest error (code: 500) HOT 1
- Fatal error: Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found HOT 1
- Laravel 6 compatibility? HOT 3
- Not pining HOT 4
- You should be redirected automatically to target URL HOT 1
- pin send error HOT 5
- can't pin an image to Pinterest but no error sent HOT 6
- request empty in create pin HOT 3
- getMeBoards not working HOT 2
- how can be scheduled images to go live at a later date on pinterest using api in php? HOT 1
- invalid_grant when trying to convert a JS access code for an access_token HOT 9
- ACCESS_TOKEN Pin Sharing HOT 2
- Project status HOT 1
- getting error message "API method not found"
- Support of Pinterest API (v5) HOT 3
- Video pin?
- How to use fromBoard method? HOT 2
- New Section HOT 1
- Request to correct instructions HOT 2
- Sanitize board name HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pinterest-api-php.