src/snapchat.php
public function markSnapShot($id, $time = 1) {
		$snap_info = array(
			$id => array(
				// We use the same time values as in markSnapViewed, but add in the
				// screenshot status.
				't' => microtime(TRUE),
				'sv' => $time + (mt_rand() / mt_getrandmax() / 10),
				'c' => self::STATUS_SCREENSHOT,
			),
		);

		$events = array(
			array(
				'eventName' => 'SNAP_SCREENSHOT',
				'params' => array(
					'id' => $id,
				),
				'ts' => time() - $time,
			),
		);

		return $this->sendEvents($events, $snap_info);
	}
public function markSnapShot($id, $time = 1) {
		$snap_info = array(
			$id => array(
				// We use the same time values as in markSnapViewed, but add in the
				// screenshot status.
				't' => microtime(TRUE),
				'sv' => $time + (mt_rand() / mt_getrandmax() / 10),
				'c' => self::STATUS_SCREENSHOT,
			),
		);

		$events = array(
			array(
				'eventName' => 'SNAP_SCREENSHOT',
				'params' => array(
					'id' => $id,
				),
				'ts' => time() - $time,
			),
		);

		return $this->sendEvents($events, $snap_info);
	}
public function markSnapShot ( $ id , $ time = 1 ) { $ snap_info = array ( $ id => array ( // We use the same time values as in markSnapViewed, but add in the // screenshot status. 't' => microtime ( TRUE ) , 'sv' => $ time + ( mt_rand ( ) / mt_getrandmax ( ) / 10 ) , 'c' => self :: STATUS_SCREENSHOT , ) , ) ; $ events = array ( array ( 'eventName' => 'SNAP_SCREENSHOT' , 'params' => array ( 'id' => $ id , ) , 'ts' => time ( ) - $ time , ) , ) ; return $ this -> sendEvents ( $ events , $ snap_info ) ; }
Sends a screenshot event.

@param string $id
The snap to mark as shot.
@param int $time
The amount of time (in seconds) the snap was viewed. Defaults to 1.

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