Skip to content
This repository has been archived by the owner on Dec 16, 2020. It is now read-only.

getSnaps not saving snaps #31

Closed
GarrettBlackmon opened this issue Mar 21, 2015 · 1 comment
Closed

getSnaps not saving snaps #31

GarrettBlackmon opened this issue Mar 21, 2015 · 1 comment
Labels

Comments

@GarrettBlackmon
Copy link

getSnaps(true) seems to print the image to the terminal instead of downloading the snap to the snaps folder.

<?php
    require_once('src/snapchat.php');

    $username = "XXXXX"; // Your snapchat username
    $password = "XXXXXX"; // Your snapchat password
    $debug = true; // Set this to true if you want to see all outgoing requests and responses from server
    $auth_token = NULL;

    $snapchat = new Snapchat($username, $auth_token, $debug);

    //Login to Snapchat with your username and password
    $snapchat->login($username, $password);

    // Get snaps data
    $snapchat->getSnaps();

    // Automatically downloads Snaps and store it in 'snaps' folder
    $snapchat->getSnaps(true);
?>

Here is the output:

error crop

@GarrettBlackmon
Copy link
Author

The issue dealt with permissions of the snaps folder. Resolved.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants