Giter Club home page Giter Club logo

Comments (12)

aliakbarazizi avatar aliakbarazizi commented on June 2, 2024 1

Still has this problem in last verison

from pinterest-api-php.

SerzhYevtushenko avatar SerzhYevtushenko commented on June 2, 2024

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
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-alive

<title>Redirecting...</title>

Redirecting...

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.

dirkgroenen avatar dirkgroenen commented on June 2, 2024

Sounds like the auth header isn't parsed to the second request, I'll check it out.

from pinterest-api-php.

attx avatar attx commented on June 2, 2024

The same issue with delete board, get remaining calls etc.

from pinterest-api-php.

dirkgroenen avatar dirkgroenen commented on June 2, 2024

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.

dirkgroenen avatar dirkgroenen commented on June 2, 2024

Fixed in 0.2.8

from pinterest-api-php.

SerzhYevtushenko avatar SerzhYevtushenko commented on June 2, 2024

Unfortunately issue is still actual for me

from pinterest-api-php.

dirkgroenen avatar dirkgroenen commented on June 2, 2024

Nothing changed in the response or something else?

from pinterest-api-php.

dirkgroenen avatar dirkgroenen commented on June 2, 2024

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.

SerzhYevtushenko avatar SerzhYevtushenko commented on June 2, 2024

Problem was on the local machine. On dev server everything fine. Thanks for fix.

from pinterest-api-php.

dirkgroenen avatar dirkgroenen commented on June 2, 2024

👍

from pinterest-api-php.

waqasasif9292 avatar waqasasif9292 commented on June 2, 2024

I am facing the same problem. Please help!

from pinterest-api-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.