Pinterest Stand Alone API Error

Forums NextScripts API Forums – Google+, Pinterest, LinkedIn, etc.. Pinterest Stand Alone API Error

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #15897
    Bill
    Participant

    Hi,

    I have implemented the Pinterest Stand Alone API.

    But i am keep getting this following error message:

    Incorrect Username/Password

    But the thing is i have used the correct username and password, and i can log in under Pinterest site with no problem.

    I have both OpenSSL and cURL installed as well.

    (Quick question: does the API works under localhost)

    Here is my code below:

    require “postToPinterest.php”;

    $email = “xxxxxx”;
    $pass = “xxxxxx”;
    $msg = ‘Post this to Pinterest!’;
    $imgURL = ‘https://www.clipsal.com.au/trade/__data/page/9761/img_clipsal_iselect_app.jpg’;
    $link = ‘https://www.clipsal.com.au’;
    $boardID = ‘408631434878700655’;

    $loginError = true;
    echo $email;
    echo ‘<br />’;
    echo $pass;
    echo ‘<br />’;

    //phpinfo();
    if(!extension_loaded(‘openssl’)){
    throw new Exception(‘This app needs the Open SSL PHP extension.’);
    }else{
    echo ‘openssl is on’;
    echo ‘<br />’;
    }

    function _isCurl(){
    return function_exists(‘curl_version’);
    }

    if(_isCurl()){
    echo ‘cURL is on’;
    echo ‘<br />’;
    }

    $boraderInfo = doGetBoardsFromPinterest();

    print_r($boraderInfo);
    echo ‘<br />’;

    $loginError = doConnectToPinterest($email, $pass);

    if (!$loginError)
    {
    echo ‘<br />’;
    echo ‘correct password’;
    doPostToPinterest($msg, $imgURL, $link, $boardID);
    } else echo $loginError;
    ?>

    #15898
    Bill
    Participant

    update the API to 2.7.6

    can log in now but got the following error

    ( ! ) Notice: Undefined variable: advSettings in C:\wamp\www\pinterest\postToPinterest.php on line 139
    Call Stack
    # Time Memory Function Location
    1 0.0007 374744 {main}( ) ..\index.php:0
    2 6.3936 605112 doPostToPinterest( ) ..\index.php:46

    #15906
    NextScripts.com
    Participant

    This is not an error, this is notice and it’s harmless.

    #15922
    Bill
    Participant

    Ok Thanks

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.