Comments (7)
I've tagged a new version: https://github.com/hansott/pinterest-php/releases/tag/3.0.2
Run $ composer update
to get the latest version. Have fun!
from pinterest-php.
Hi,
I am also facing the same issue
I have installed the PHP Pinterest API on my server and I have authenticated the user using OAuth. When I am trying to get board details I am facing an issue "Notice: Undefined offset: 1 in /vendor/hansott/pinterest-php/src/Pinterest/Http/BuzzClient.php on line 71". I have debugged the issue and found that the key "Pinterest-Generated-By" doesn't have the value. For this please refer Line number 71 in /vendor/hansott/pinterest-php/src/Pinterest/Http/BuzzClient.php
Line cauisng issue,
list($key, $value) = explode(': ', $header);
My code:
$client = new Pinterest\Http\BuzzClient();
$auth = Pinterest\Authentication::onlyAccessToken($client, $token);
$api = new Pinterest\Api($auth);
$response = $api->getUserBoards();
Please let me know why I am facing this issue. And do I need to add value in settings to get the value for "Pinterest-Generated-By"?
Thanks
from pinterest-php.
Thanks for reporting. I'll take a look!
from pinterest-php.
Hi,
Have you check this error,
Notice: Undefined offset: 1 in /vendor/hansott/pinterest-php/src/Pinterest/Http/BuzzClient.php on line 71
Can you let us know why the issue is occurring. We have also shared our code what we used for the development.
Thanks
from pinterest-php.
Just pushed a fix and I'm waiting for the test suite to run. Once that's completed I'll tag a new version.
from pinterest-php.
Thank you for supporting we will Update new version
from pinterest-php.
Thanks @hansott the new version worked
from pinterest-php.
Related Issues (20)
- Cannot Authorize Token from Code HOT 11
- Simple Question regarding "Follow a Board" and "Repin / Save a Pin" functions HOT 5
- Follow a board
- Unfollow a user
- Unfollow a board
- deletePin sprintf format causes data conversion and thus results in pin not found HOT 4
- Error - Operation timed out after 5000 milliseconds with 0 bytes received HOT 2
- Add docs for "Get the pins of authenticated user"
- Can not install package HOT 3
- Fatal error: Uncaught Pinterest\Http\Exceptions\RateLimitedReached: Rate limit reached. in HOT 2
- I get a token, but can't use $api in callback -- auth error HOT 1
- I can't get user info HOT 2
- Proxy Usage HOT 6
- Save (Re-Pin) a pin HOT 2
- $api->getUserBoards() suddenly failing HOT 4
- Malformed Json Error HOT 12
- how can be scheduled images to go live at a later date on pinterest using api in php? HOT 1
- ACCESS_TOKEN Pin Sharing HOT 2
- Upcoming v2 version of Pinterest API and the future of this package
- Parameter 'board' is required. HOT 2
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-php.