You are here

public function Twitter::direct_messages_sent in Twitter 7.5

Same name and namespace in other branches
  1. 6.5 twitter.lib.php \Twitter::direct_messages_sent()
  2. 7.6 twitter.lib.php \Twitter::direct_messages_sent()

Returns the 20 most recent direct messages sent by the authenticating user.

This method requires an access token with RWD (read, write & direct message) permissions

Parameters

array $params: An array of parameters.

Return value

Array of Twitter statuses.

See also

https://dev.twitter.com/docs/api/1.1/get/direct_messages/sent

File

./twitter.lib.php, line 622
Integration layer to communicate with the Twitter REST API 1.1. https://dev.twitter.com/docs/api/1.1

Class

Twitter
Primary Twitter API implementation class

Code

public function direct_messages_sent($params = array()) {
  return $this
    ->get_statuses('direct_messages/sent', $params);
}