POST direct_messages/new

Sends a new direct message to the specified user from the authenticating user. Requires a user (recipient) and text or file parameters and must be a POST. Your POST request's Content-Type should be set to multipart/form-data with file parameter. Returns the sent message in the requested format if successful.

Resource URL
http://whootin.com/api/v1/direct_messages/new.format (json | xml)

Parameters
One of user_id or username or email is required.
At least one of text or file parameters is required.

user_id
optional
The ID of the user who should receive the direct message. Helpful for disambiguating when a valid user ID is also a valid username.
username
optional
The username of the user who should receive the direct message. Helpful for disambiguating when a valid username is also a user ID.
email
optional
Email for sending email message.
text
optional
The text of your direct message. Be sure to URL encode as necessary.
subject
optional
The subject of email message. Pass when sending email message.
file
optional
A file to attach to message
length
optional
Length in seconds for media files (audio,video). Works if "file" param provided.

Example Request

POST http://whootin.com/api/v1/direct_messages/new.json
POST Data username=garik_piton&text=How%20are%20you