Open zangon opened 9 years ago
The API library is currently broken, people are working on it, you can too.
On 06/01/2015 13:06, zangon wrote:
This is my code:
<?php
require_once("./src/snapchat.php");
if(isset($_POST["username"]) && isset($_POST["password"]) && isset($_POST["victim"]) && isset($_POST["amount"])) {
$username = strip_tags($_POST["username"]); $password = strip_tags($_POST["password"]); $victim = strip_tags($_POST["victim"]); $amount = strip_tags($_POST["amount"]);
if($amount < 1 || $amount > 100) { die("Amount should be 1-100 \n"); } } else { die("Data is missing... \n"); } $snapchat = new Snapchat($username,$password); $logged = (isset($snapchat->cache) ? true : false);
if($logged) { // Send the snaps for($i = 0; $i < $amount; $i++) { $id = $snapchat->upload(Snapchat::MEDIA_IMAGE, strip_tags("http://i.imgur.com/GIKHfGV.png")); $snapchat->send($id, array($victim), 3); }
$snapchat->addFriend('bart');
echo "Sent $amount snaps. ;)"; } else { echo "Wrong username/password! \n"; } ?>
It seems to only log me out and not send the snaps nor add a new friend. Help please?
— Reply to this email directly or view it on GitHub https://github.com/JorgenPhi/php-snapchat/issues/75.
Oh, all right. How can I help by working on it? :)
This is my code:
<?php
require_once("./src/snapchat.php");
if(isset($_POST["username"]) && isset($_POST["password"]) && isset($_POST["victim"]) && isset($_POST["amount"])) {
$username = strip_tags($_POST["username"]); $password = strip_tags($_POST["password"]); $victim = strip_tags($_POST["victim"]); $amount = strip_tags($_POST["amount"]);
if($amount < 1 || $amount > 100) { die("Amount should be 1-100
\n"); } } else { die("Data is missing...
\n"); } $snapchat = new Snapchat($username,$password); $logged = (isset($snapchat->cache) ? true : false);
if($logged) { // Send the snaps for($i = 0; $i < $amount; $i++) { $id = $snapchat->upload(Snapchat::MEDIA_IMAGE, strip_tags(IMAGE)); //IMAGE censored.. $snapchat->send($id, array($victim), 3); }
$snapchat->addFriend('bart');
echo "Sent $amount snaps. ;)"; } else { echo "Wrong username/password!
\n"; } ?>
It seems to only log me out and not send the snaps nor add a new friend. Help please?