Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting error message "API method not found" #122

Open
ghost opened this issue Sep 9, 2021 · 0 comments
Open

getting error message "API method not found" #122

ghost opened this issue Sep 9, 2021 · 0 comments

Comments

@ghost
Copy link

ghost commented Sep 9, 2021

Using this code (using my App id and App secret key and CALLBACK_URL)

    $pinterest = new \DirkGroenen\Pinterest\Pinterest(CLIENT_ID, CLIENT_SECRET);

    if (isset($_GET["code"])) {

        $token = $pinterest->auth->getOAuthToken($_GET["code"]);
        $pinterest->auth->setOAuthToken($token->access_token);

    } else {

        $loginurl = $pinterest->auth->getLoginUrl(CALLBACK_URL,  ['user_accounts:read,boards:read']);
        echo '<a href=' . $loginurl . '>Authorize Pinterest</a>';
        $me = $pinterest->users->me();
        echo $me;

    }

but after click on "Authorize Pinterest" link getting error message-
{"code":11,"data":null,"message":"API method not found.","endpoint_name":null,"status":"failure"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants