public function createFavorites($id, $entities = null)
	{
		// Set the API path.
		$path = '/favorites/create.json';

		$data['id'] = $id;

		// Check if entities is specified.
		if (!is_null($entities))
		{
			$data['include_entities'] = $entities;
		}

		// Send the request.
		return $this->sendRequest($path, 'POST', $data);
	}
public function createFavorites($id, $entities = null)
	{
		// Set the API path.
		$path = '/favorites/create.json';

		$data['id'] = $id;

		// Check if entities is specified.
		if (!is_null($entities))
		{
			$data['include_entities'] = $entities;
		}

		// Send the request.
		return $this->sendRequest($path, 'POST', $data);
	}
public function createFavorites ( $ id , $ entities = null ) { // Set the API path. $ path = '/favorites/create.json' ; $ data [ 'id' ] = $ id ; // Check if entities is specified. if ( ! is_null ( $ entities ) ) { $ data [ 'include_entities' ] = $ entities ; } // Send the request. return $ this -> sendRequest ( $ path , 'POST' , $ data ) ; }
Method to favorite the status specified in the ID parameter as the authenticating user

@param   integer  $id        The numerical ID of the desired status.
@param   boolean  $entities  When set to true,  each tweet will include a node called "entities,". This node offers a variety
of metadata about the tweet in a discreet structure, including: user_mentions, urls, and hashtags.

@return  array  The decoded JSON response

@since   1.0
Method to favorite the status specified in the ID parameter as the authenticating user