'Returns a list of the direct messages sent by the authenticating user.
Args:
since_id:
Returns results with an ID greater than (that is, more recent
than) the specified ID. There are limits to the number of
Tweets which can be accessed through the API. If the limit of
Tweets has occured since the since_id, the since_id will be
forced to the oldest ID available. [Optional]
max_id:
Returns results with an ID less than (that is, older than) or
equal to the specified ID. [Optional]
count:
Specifies the number of direct messages to try and retrieve, up to a
maximum of 200. The value of count is best thought of as a limit to the
number of Tweets to return because suspended or deleted content is
removed after the count has been applied. [Optional]
page:
Specifies the page of results to retrieve.
Note: there are pagination limits. [Optional]
include_entities:
The entities node will be omitted when set to False.
[Optional]
Returns:
A sequence of twitter.DirectMessage instances'

def GetSentDirectMessages(self, since_id=None, max_id=None, count=None, page=None, include_entities=True):

    url = ('%s/direct_messages/sent.json' % self.base_url)
    parameters = {}
    if since_id:
        parameters['since_id'] = since_id
    if page:
        parameters['page'] = page
    if max_id:
        parameters['max_id'] = max_id
    if count:
        try:
            parameters['count'] = int(count)
        except ValueError:
            raise TwitterError({'message': 'count    must    be    an    integer'})
    if (not include_entities):
        parameters['include_entities'] = 'false'
    resp = self._RequestUrl(url, 'GET', data=parameters)
    data = self._ParseAndCheckTwitter(resp.content.decode('utf-8'))
    return [DirectMessage.NewFromJsonDict(x) for x in data]
