public function Twitter::direct_messages_show in Twitter 7.5
Same name and namespace in other branches
- 6.5 twitter.lib.php \Twitter::direct_messages_show()
- 7.6 twitter.lib.php \Twitter::direct_messages_show()
Returns a single direct message, specified by an id parameter.
This method requires an access token with RWD (read, write & direct message) permissions
Parameters
int $id: The ID of the direct message.
Return value
array of Twitter statuses.
See also
https://dev.twitter.com/docs/api/1.1/get/direct_messages/show
File
- ./
twitter.lib.php, line 638 - Integration layer to communicate with the Twitter REST API 1.1. https://dev.twitter.com/docs/api/1.1
Class
- Primary Twitter API implementation class
Code
public function direct_messages_show($id) {
$params = array(
'id' => $id,
);
return $this
->get_statuses('direct_messages/show', $params);
}