› Forums › NextScripts API Forums – Google+, Pinterest, LinkedIn, etc.. › Missing files from recently purchased "SNAP Premium API"
Tagged: flipboard
- This topic has 3 replies, 2 voices, and was last updated 5 years, 3 months ago by hdsouza@yahoo.com.
- AuthorPosts
- June 16, 2019 at 8:44 pm #564093
Hi,
I had purchased the “SNAP Premium API” on Jun 6, 2019.
There is a complete folder missing for the software zip file.
Its the “inc-cl” folder.
This folder contains the scripts to connect to respective social accounts.I specifically need Flipboard to work.
I have attached the script I am using – flipboard.php
Please send me the correct zip or upload to my Nextscripts account.Here is the Flipboard script being used that points to a missing folder
——————————————————————————
<?php
require_once “nxs-api/nxs-api.php”;
require_once “nxs-api/nxs-http.php”;
require_once “inc/nxs-functions.php”;
require_once “inc-cl/fp.api.php”;$PostUrl = ‘https://www.gestationaldiabetics.com/dealing-with-breathlessness-during-pregnancy/’;
$PostTitle = ‘Dealing with Breathlessness During Pregnancy’;
$postText = ‘A whole lot of adjustments happen to the body throughout pregnancy…’;
$postLabel = !empty($_POST[‘Labels’])?$_POST[‘Labels’]:”;
$postText = substr($postText,’0′,’250′).”…”;
$message = array(
‘url’=> !empty($_POST[‘PostUrl’])?$_POST[‘PostUrl’]:”,
‘pTitle’=> !empty($_POST[‘PostTitle’])?$_POST[‘PostTitle’]:”,
‘pText’=> !empty($postText)?$postText:”
);$NToptions = array();
$NToptions[‘uName’] = ‘haha@gmail.com’;
$NToptions[‘uPass’] = ‘this_is_my-password’;
$NToptions[‘mgzURL’] = ‘https://flipboard.com/@sutherland2016/sutherland-chjhr1hky’;
$NToptions[‘msgFrmt’] = ‘%EXCERPT%’;$ValueFromTheCookie = ‘1839503224%7C49440890f5ae3613bebdb8d8bd9e6c97%7Ce41521be45489e3f67b6f9b800faa4e7’;
$ValueFromTheUserIDCookie = ‘1839503224’;
$nt->sid = $ValueFromTheCookie;
$nt->cuid = $ValueFromTheUserIDCookie;$ntToPost = new nxs_class_SNAP_FP();
$result = $ntToPost->doPostToNT($NToptions, $message);if (!empty($result) && is_array($result) && !empty($result[‘postURL’]))
echo ‘New Post‘;
else
echo “".print_r($result, true)."
“;
?>June 17, 2019 at 4:51 pm #564177Just remove this line:
require_once “inc-cl/fp.api.php”;
June 17, 2019 at 6:16 pm #564180Removing the “inc-cl/fp.api.php” gives a 500 error.
Also the Webpage being sent via the code is valid.Try it out and you will get the same error.
Alternatively if you have a sample script that works for Flipboard and is part of “SNAP Premium API” let me know. I also checked https://www.nextscripts.com/snap-api/ for flipboard sample code and did not find any.
Thanks- This reply was modified 5 years, 3 months ago by hdsouza@yahoo.com.
June 20, 2019 at 4:45 pm #564370So when do I get the correct file ????????
- AuthorPosts
- You must be logged in to reply to this topic.