src/snapchat.php
public function getStory($media_id, $key, $iv) {
		// Make sure we're logged in and have a valid access token.
		if (!$this->auth_token || !$this->username) {
			return FALSE;
		}

		// Retrieve encrypted story and decrypt.
		$blob = parent::get('/story_blob?story_id=' . $media_id);

		if (!empty($blob)) {
			return parent::decryptCBC($blob, $key, $iv);
		}

		return FALSE;
	}
public function getStory($media_id, $key, $iv) {
		// Make sure we're logged in and have a valid access token.
		if (!$this->auth_token || !$this->username) {
			return FALSE;
		}

		// Retrieve encrypted story and decrypt.
		$blob = parent::get('/story_blob?story_id=' . $media_id);

		if (!empty($blob)) {
			return parent::decryptCBC($blob, $key, $iv);
		}

		return FALSE;
	}
public function getStory ( $ media_id , $ key , $ iv ) { // Make sure we're logged in and have a valid access token. if ( ! $ this -> auth_token || ! $ this -> username ) { return FALSE ; } // Retrieve encrypted story and decrypt. $ blob = parent :: get ( '/story_blob?story_id=' . $ media_id ) ; if ( ! empty ( $ blob ) ) { return parent :: decryptCBC ( $ blob , $ key , $ iv ) ; } return FALSE ; }
Downloads a story.

@param string $media_id
The media ID of the story.
@param string $key
The base64-encoded key of the story.
@param string $iv
The base64-encoded IV of the story.

@return mixed
The story data or FALSE on failure.
Downloads a story .