› Forums › NextScripts API Forums – Google+, Pinterest, LinkedIn, etc.. › New Pinterest Standalone API is not working.
- This topic has 15 replies, 1 voice, and was last updated 9 years, 2 months ago by Felix Futuri.
- AuthorPosts
- June 1, 2014 at 2:33 pm #213680Yagmur AkgünParticipant
So, no one is bothering answering my support tickets, I’ll just post here. In the example for Pinterest Standalone API there is a call for nxs-api.php:
require_once “nxs-api/nxs-api.php”;
which is not included in the API library zip.
There is a file called nxs-http.php though, so I changed my script to reference this file.
My script for testing looks like this:
<?
require “postToPinterest.php”;
global $nxs_gCookiesArr;
$nxs_gCookiesArr = doCheckPinterest(); // Use your function to retrieve saved data to array
$email = $argv[1];
$pass = $argv[2];
$msg = $argv[3];
$imgURL =$argv[4];
$link = $argv[5];
$boardID = $argv[6]
$loginError = true;
if (is_array($nxs_gCookiesArr)) $loginError = doCheckPinterest();
if ($loginError!==false) {
$loginError = doConnectToPinterest($email, $pass);
}
if (!$loginError)
{
doPostToPinterest($msg, $imgURL, $link, $boardID);
} else echo $loginError;
?>
So, since changing to the newest API library (because login was broken in the old one), I am getting this error:
PHP Notice: Undefined index: SERVER_NAME in C:\php\nxs-http.php on line 188
nxs_Error Object
(
[errors] => Array
(
[http_request_failed] => Array
(
[0] => SSL certificate problem: unable to get local issuer certificate
)
)
)
– ERROR
I am running this script on localhost, which worked well until this new update.June 1, 2014 at 4:18 pm #213723The answer is in the FAQ – #4.4:
June 4, 2014 at 2:45 am #214416Madni NadeemParticipantAPI problems need to be fixed as we are lookoing forward to more services too.
Really wanted to see Reddit in the list of services provided.June 6, 2014 at 12:54 am #215113DavidParticipantThe response seems to be referring to SNAP Pro for WordPress. I also need help configuring the stand alone SNAP API. I feel like everything on this site refers back to the WordPress product. I cannot authorize my Facebook accounts with the Facebook API. Please help! Where should I go to get more help with the stand alone API? I am able to add Facebook accounts no problem (as far as the settings in place), but every time I try to authorize an account, it will not work.
June 6, 2014 at 4:58 am #215151ToniParticipantThe standalone Pinterest API doesn’t work anymore. It worked fine until yesterday but now I get the following error:
[api_error_code] => 7
[message] => You don’t have permission to edit that board.
[code] => API_ERROR
[target] => <webapp.resources.pin_resource.PinResource object at 0x1ab05e90>
[http_status] => 401Please note I use the latest version of Universal SNAP API
June 6, 2014 at 1:20 pm #215271David. it doesn’t matter WordPress pluing ir standalone API. SSL must be working.
Toni. This error comes out only if you supply incorrect board ID. Please check that you have the correct one.
June 10, 2014 at 1:58 pm #216884LukeParticipantI have the exact same problem. I have redownloaded the standalone api and it’s still the not working.
The API result is “1” so I can’t even submit an error report. This is rather frustrating. I tested the demo on your site and it’s working. So what’s wrong?June 11, 2014 at 12:28 pm #217370ToniParticipantI’ve downloaded the latest version and now I get the following error:
Fatal error: Call to a member function getHeaderValue() on a non-object in nxs-http.php on line 88June 18, 2014 at 12:23 pm #220623Please subscribe to https://www.nextscripts.com/updts/ there or from
Facebook – https://www.facebook.com/nextscripts
Google+ – https://plus.google.com/u/0/103787731928248070221/posts
Twitter – https://twitter.com/nxsupdatesYou issue has been already fixed – https://www.nextscripts.com/updts/news/2014/06/new-pinterest-api-2-15-28/
June 19, 2014 at 4:45 am #220830ToniParticipantI’ve downloaded the latest version and now I get no errors but nothing is posted on Pinterest
June 21, 2014 at 5:42 am #221521Jaco RouxParticipantI get a false response from the API, after doing a bit of debugging, this is what Pinterest returns:
Any suggestions:
array(
‘page_info’ => array(
‘breadcrumbs’ => array(),
‘meta’ => array(
‘og:url’ => ‘https://www.pinterest.com’,
‘description’ => ‘Pinterest is a visual discovery tool that you can use to find ideas for all your projects and interests.’,
‘pinterest’ => ‘nohover’,
‘og:type’ => ‘website’,
‘og:description’ => ‘Pinterest is a visual discovery tool that you can use to find ideas for all your projects and interests.’,
‘twitter:app:android’ => ‘com.pinterest’,
‘twitter:app:id:ipad’ => ‘429047995’,
‘og:title’ => ‘Pinterest’,
‘twitter:card’ => ‘summary’,
‘twitter:site’ => ‘@pinterest’,
‘og:image’ => ‘https://passets-ec.pinterest.com/images/about/logos/Pinterest_Favicon.png’,
‘twitter:app:id:iphone’ => ‘429047995’
),
‘title’ => ‘Pinterest’
),
‘client_context’ => array(
‘app_version’ => ‘1a8199c’
),
‘request_identifier’ => ‘404532234559’,
‘module’ => array(
‘html’ => ‘<div class=”ajax CsrfErrorPage Module” id=”CsrfErrorPage-1″>
<div class=”errorHeader”>
<div class=”errorMessage”>
<div class=”errorInternal”></div>
<div>Uh oh! Something went wrong.</div>
<p class=”retry”>Try these little browser tricks to get going again.</p>
</div>
</div><ul class=”diagnoseList”>
<li class=”diagnose”>
<span class=”errorNumber”>1</span>
Turn on Javascript
<li class=”diagnose”>
<span class=”errorNumber”>2</span>
Clear your cache and cookies
<li class=”diagnose”>
<span class=”errorNumber”>3</span>
Make sure you’re up-to-date
<li class=”diagnose”>
<span class=”errorNumber”>4</span>
Try a different browser<p class=”more”>
Still having trouble? Get help.</p>
</div>’,
‘tree’ => array(
‘resource’ => null,
‘name’ => ‘CsrfErrorPage’,
‘children’ => array(),
‘deps’ => array(
(int) 0 => ‘CsrfErrorPage’
),
‘errorStrategy’ => (int) 2,
‘attributes’ => array(
‘class’ => ‘ajax CsrfErrorPage Module’,
‘id’ => ‘CsrfErrorPage-1’
),
‘options’ => array(),
‘uid’ => ‘CsrfErrorPage-1’
)
),
‘resource_response’ => array(
‘data’ => null,
‘error’ => null
)
)June 26, 2014 at 12:18 pm #222924Er0sParticipantThe atandalone API for pinteres is not working, when are you going to fix it?????
June 27, 2014 at 2:07 am #223038ToniParticipantAn update has been released and it looks like it’s working now
May 5, 2015 at 12:44 pm #423406thienParticipantProblem:
Array ( [pgID] => [isPosted] => 0 [pDate] => 2015-05-05 16:43:08 [Error] => Something went wrong – Array ( [api_error_code] => 7 [message] => You don’t have
API Version: API Version: 2.16.3
Plugin version: 3.4.16September 20, 2015 at 12:39 am #460785Felix FuturiParticipantI get the “you don’t have access to edit that board” error on one of my sites, but on another one it posts just fine.
Very strange because I imported the settings from one to the other, and the names of the boards are completely different.
One the one site that doesn’t work, I even switched to new boards, created new boards, nothing fixed it. Is there a solution? It’s strange that one works and the other doesnt.
- AuthorPosts
- You must be logged in to reply to this topic.