› Forums › NextScripts API Forums – Google+, Pinterest, LinkedIn, etc.. › Pinterest Stand Alone API Error
- This topic has 3 replies, 1 voice, and was last updated 11 years, 5 months ago by Bill.
- AuthorPosts
- July 7, 2013 at 9:40 pm #15897BillParticipant
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;
?>July 7, 2013 at 9:51 pm #15898BillParticipantupdate 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:46July 8, 2013 at 10:25 am #15906This is not an error, this is notice and it’s harmless.
July 8, 2013 at 10:24 pm #15922BillParticipantOk Thanks
- AuthorPosts
- You must be logged in to reply to this topic.