Code Monkey home page Code Monkey logo

Comments (7)

hansott avatar hansott commented on June 10, 2024 1

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.

PavithraHari avatar PavithraHari commented on June 10, 2024

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.

hansott avatar hansott commented on June 10, 2024

Thanks for reporting. I'll take a look!

from pinterest-php.

PavithraHari avatar PavithraHari commented on June 10, 2024

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.

hansott avatar hansott commented on June 10, 2024

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.

PavithraHari avatar PavithraHari commented on June 10, 2024

Thank you for supporting we will Update new version

from pinterest-php.

SuriyaPrakashWebDev avatar SuriyaPrakashWebDev commented on June 10, 2024

Thanks @hansott the new version worked 👍

from pinterest-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.