Universal API implementation

Viewing 1 post (of 1 total)
  • Author
  • #535263


    I am trying to implement universal api and I have used the same code which you have provided at https://www.nextscripts.com/snap-api/

    But it is giving error “No Settings found”.
    Below is my code. Please have look and guide me in debugging the same

    require_once "nxs-api/nxs-api.php";
    require_once "nxs-api/nxs-http.php";
    require_once "inc/nxs-functions.php";
    require_once "inc/nxs-networks-class.php";
    require_once "nxs-snap-class.php";

    // First, let's get settings.
    $fileData = file_get_contents('nx-snap-settings.txt');
    $snapOptions = maybe_unserialize($fileData);

    if (class_exists("cl_nxsAutoPostToSN")) {
    // Initialize the class
    $nxsAutoPostToSN = new cl_nxsAutoPostToSN($snapOptions);
    // Message array contains the post
    $message = array(
    'title'=>'Social Networks Auto Poster (SNAP) API',
    'text'=>'Social Networks Auto Poster (SNAP) API is
    a universal API for the most popular social networks',
    // Set message
    // Make the post
    try {
    $result = $nxsAutoPostToSN->autoPost();
    echo 'Successfully posted to all a/c';
    } catch(Exception $e) {
    echo "error".$e->getMessage();


Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.