コード例 #1
0
	$twitter->userShow('screen_name or userID');


/******************** Direct Message Methods************************/
echo 'Direct Messages:';
//Sends a new direct message to the specified user from the authenticating user
	$twitter->newMessage('screen_name', 'message to send');
	
//Destroy a single message, specified by the id parameter below
//	$twitter->destroyMessage(1234);	
	//Requires input of the post ID

//Returns a list of the 20 most recent direct messages sent to the authenticating user; in array format.
	$twitter->directMessages();
	
//Returns a list of the 20 most recent direct messages sent by the authenticating user; in array format.
	$twitter->sentMessages();
	

/********************** Following Methods****************************/

echo 'Following:';
//Follow the user specified in the ID parameter as the authenticating user
	$twitter->follow('screen_name or userID');	
	//Requires input of the post ID or Screen Name 
	
//Discontinues follow with the user specified in the ID parameter as the authenticating user
	$twitter->destroyFollow('screen_name or userID');	
	//Requires input of the post ID or Screen Name
	
?>