require_once "nxs-api/nxs-api.php"

Forums NextScripts API Forums – Google+, Pinterest, LinkedIn, etc.. require_once "nxs-api/nxs-api.php"

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #267504
    WesJ
    Participant

      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&#8217;;
      $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.

      #267557
      MS
      Participant

        You need to buy nxs-api.php here: https://www.nextscripts.com/snap-api/

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