JTwitterDirectmessages
class JTwitterDirectmessages extends JTwitterObject
Twitter API Direct Messages class for the Joomla Platform.
Methods
Constructor.
Method to check the rate limit for the requesting IP address
Method to build and return a full request URL for the request. This method will add appropriate pagination details if necessary and also prepend the API url to have a complete URL for the request.
Method to retrieve the rate limit for the requesting IP address
Method to send the request.
Set an option for the JTwitterObject instance.
Method to get the most recent direct messages sent to the authenticating user.
Method to get the most recent direct messages sent by the authenticating user.
Method to send a new direct message to the specified user from the authenticating user.
Method to get a single direct message, specified by an id parameter.
Method to delete the direct message specified in the required ID parameter.
Details
__construct(
Registry $options = null,
JHttp $client = null,
JTwitterOAuth $oauth = null)
Constructor.
void
checkRateLimit(
string $resource = null,
string $action = null)
Method to check the rate limit for the requesting IP address
string
fetchUrl(
string $path,
array $parameters = null)
Method to build and return a full request URL for the request. This method will add appropriate pagination details if necessary and also prepend the API url to have a complete URL for the request.
array
getRateLimit(
string $resource)
Method to retrieve the rate limit for the requesting IP address
array
sendRequest(
string $path,
string $method = 'GET',
mixed $data = array(),
array $headers = array())
Method to send the request.
array
getDirectMessages(
integer $since_id,
integer $max_id,
integer $count = 20,
boolean $entities = null,
boolean $skip_status = null)
Method to get the most recent direct messages sent to the authenticating user.
array
getSentDirectMessages(
integer $since_id,
integer $max_id,
integer $count = 20,
integer $page,
boolean $entities = null)
Method to get the most recent direct messages sent by the authenticating user.
array
sendDirectMessages(
mixed $user,
string $text)
Method to send a new direct message to the specified user from the authenticating user.