Skip to content

Commit

Permalink
Merge branch 'master' of github.com:moomerman/twitter_oauth
Browse files Browse the repository at this point in the history
  • Loading branch information
moomerman committed May 6, 2010
2 parents 4c465a7 + e076976 commit 2e78bcd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/twitter_oauth/direct_messages.rb
Expand Up @@ -9,9 +9,10 @@ def messages(options={})
get("/direct_messages.json?#{args}")
end

# Returns a list of the 20 most recent direct messages sent by the authenticating user.
def sent_messages
get('/direct_messages/sent.json')
# By default, returns a list of the 20 most recent direct messages sent by the authenticating user.
def sent_messages(options={})
args = options.map{|k,v| "#{k}=#{v}"}.join('&')
get("/direct_messages/sent.json?#{args}")
end

# Sends a new direct message to the specified user from the authenticating user.
Expand Down

0 comments on commit 2e78bcd

Please sign in to comment.