// Your snapchat password $gEmail = " "; // Gmail account $gPasswd = " "; // Gmail account password $casperKey = " "; // Casper API Key $casperSecret = " "; // Casper API Secret $debug = false; // Set this to true if you want to see all outgoing requests and responses from server //////////////////////////////// // $imagePath = "...pic.jpeg"; // URL or local path to a media file (image or video) $sendTo = array("ryan.shane"); $snapchat = new Snapchat($username, $gEmail, $gPasswd, $casperKey, $casperSecret, $debug); $snapchat->openAppEvent(); // $snapchat->addFriend($sendTo); //Login to Snapchat with your username and password //must use for first login! //$snapchat->login($password); // $snapchat->addFriend("wmorgenlander"); // Get friends in an array $friends = $snapchat->getFriends(); echo "My friends: "; print_r($friends); // Send snap adding text to your image and 10 seconds // $snapchat->send($imagePath, $sendTo, "turn sloich", 10); // Set a story // $snapchat->setStory($imagePath); // Set a story adding text to the image and 5 seconds // $snapchat->setStory($imagePath, 5, "This is my turntoi story");