- This topic has 1 reply, 1 voice, and was last updated 10 years, 7 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
› Forums › NextScripts API Forums – Google+, Pinterest, LinkedIn, etc.. › require_once "nxs-api/nxs-api.php"
Can someone explain me what this code means
require_once “nxs-api/nxs-api.php”
it is from a script I found on this site
<?php
require_once “nxs-api/nxs-api.php”;
$email = admin@admin.com’;
$pass = ‘admin’;
$msg = ‘Have a nice #day’;
$imgURL = ‘https://images.wordpress.com/2014/08/photo1.jpg’;
$link = ‘https://mysite.wordpress.com/2014/08/02/link /’;
$boardID = ‘ ‘;
$nt = new nxsAPI_PN();
$loginError = $nt->connect($email, $pass);
if (!$loginError)
{
$result = $nt -> post($msg, $imgURL, $link, $boardID);
}
else echo $loginError;
if (!empty($result) && is_array($result) && !empty($result[‘post_url’]))
echo ‘New Post‘;
else
echo “
".print_r($result, true)."
“;
?>
I guess I need that script, but where can I find it or can I also remove it?
How can I get this script above working?
Pease help.
You need to buy nxs-api.php here: https://www.nextscripts.com/snap-api/
Notifications