Closed pavelhouzva closed 4 years ago
I'll take a look at this as soon as I get back from my holidays, next week.
Pinterest API requires "/" at the end of every path. API redirects with 308 HTTP code which is not handled in CurlBuilder. (#110 )
API call: https://api.pinterest.com/v1/me/boards
Response headers:
0: HTTP/2 308
content-type: text/html; charset=utf-8
content-length: 285
location: https://api.pinterest.com/v1/me/boards/
pinterest-generated-by: coreapp-ngapi-prod-0a018332
x-envoy-upstream-service-time: 5
cache-control: private
date: Tue, 21 Jan 2020 12:35:28 GMT
set-cookie: _ir=0; Max-Age=1800; HttpOnly; Path=/; Secure
x-cdn: akamai
age: 0
Reponse body:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>Redirecting...</title>
<h1>Redirecting...</h1>
<p>You should be redirected automatically to target URL: <a href="https://api.pinterest.com/v1/me/boards/">https://api.pinterest.com/v1/me/boards/</a>. If not click the link.array(0) {
}
Thanks @pavelhouzva. These changes have been released as 0.2.13.
Docs - Pinterest Developers