public function unfollow($user)
	{
		// Determine which type of data was passed for $user
		if (is_numeric($user))
		{
			$data['user_id'] = $user;
		}
		elseif (is_string($user))
		{
			$data['screen_name'] = $user;
		}
		else
		{
			// We don't have a valid entry
			throw new \RuntimeException('The specified username is not in the correct format; must use integer or string');
		}

		// Set the API path
		$path = '/friendships/destroy.json';

		// Send the request.
		return $this->sendRequest($path, 'POST', $data);
	}
public function unfollow($user)
	{
		// Determine which type of data was passed for $user
		if (is_numeric($user))
		{
			$data['user_id'] = $user;
		}
		elseif (is_string($user))
		{
			$data['screen_name'] = $user;
		}
		else
		{
			// We don't have a valid entry
			throw new \RuntimeException('The specified username is not in the correct format; must use integer or string');
		}

		// Set the API path
		$path = '/friendships/destroy.json';

		// Send the request.
		return $this->sendRequest($path, 'POST', $data);
	}
public function unfollow ( $ user ) { // Determine which type of data was passed for $user if ( is_numeric ( $ user ) ) { $ data [ 'user_id' ] = $ user ; } elseif ( is_string ( $ user ) ) { $ data [ 'screen_name' ] = $ user ; } else { // We don't have a valid entry throw new \ RuntimeException ( 'The specified username is not in the correct format; must use integer or string' ) ; } // Set the API path $ path = '/friendships/destroy.json' ; // Send the request. return $ this -> sendRequest ( $ path , 'POST' , $ data ) ; }
Allows the authenticating users to unfollow the user specified in the ID parameter.

@param   mixed  $user  Either an integer containing the user ID or a string containing the screen name.

@return  array  The decoded JSON response

@since   1.0
@throws  \RuntimeException
Allows the authenticating users to unfollow the user specified in the ID parameter .