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

		$timestamp = parent::timestamp();
		$result = parent::post(
			'/send',
			array(
				'media_id' => $media_id,
				'recipient' => implode(',', $recipients),
				'time' => $time,
				'timestamp' => $timestamp,
				'username' => $this->username,
			),
			array(
				$this->auth_token,
				$timestamp,
			)
		);

		return is_null($result);
	}
public function send($media_id, $recipients, $time = 3) {
		// Make sure we're logged in and have a valid access token.
		if (!$this->auth_token || !$this->username) {
			return FALSE;
		}

		$timestamp = parent::timestamp();
		$result = parent::post(
			'/send',
			array(
				'media_id' => $media_id,
				'recipient' => implode(',', $recipients),
				'time' => $time,
				'timestamp' => $timestamp,
				'username' => $this->username,
			),
			array(
				$this->auth_token,
				$timestamp,
			)
		);

		return is_null($result);
	}
public function send ( $ media_id , $ recipients , $ time = 3 ) { // Make sure we're logged in and have a valid access token. if ( ! $ this -> auth_token || ! $ this -> username ) { return FALSE ; } $ timestamp = parent :: timestamp ( ) ; $ result = parent :: post ( '/send' , array ( 'media_id' => $ media_id , 'recipient' => implode ( ',' , $ recipients ) , 'time' => $ time , 'timestamp' => $ timestamp , 'username' => $ this -> username , ) , array ( $ this -> auth_token , $ timestamp , ) ) ; return is_null ( $ result ) ; }
Sends a snap.

@param string $media_id
The media ID of the snap to send.
@param array $recipients
An array of recipient usernames.
@param int $time
The time in seconds the snap should be available (1-10). Defaults to 3.

@return bool
TRUE if successful, FALSE otherwise.
Sends a snap .