This Choreo sends a new direct message to the specified user from the authenticating user. The documentation for this Twitter resource can be found here.
To obtain access to direct messages, you will need to make sure your application record on https://dev.twitter.com/apps is set to have a permission level of "Read, Write and Direct Messages".
Here's an example of acceptable inputs:
ConsumerKey: {YOUR CONSUMER KEY}
ConsumerSecret {YOUR CONSUMER SECRET}
AccessToken: {YOUR ACCESS TOKEN}
AccessTokenSecret: {YOUR TOKEN SECRET}
ScreenName: qatemboo
Text: Hello World
The following is a sample of the JSON information returned by this Choreo:
Note that in cases where both id and id_str are provided in the output, it is preferable to use id_str.
{
"sender_id": 97731133,
"created_at": "Wed Dec 19 20:07:52 +0000 2012",
"id_str": "281491057022214144",
"recipient": {
"id": 97731133,
"profile_text_color": "333333",
"followers_count": 3,
"geo_enabled": false,
"following": false,
"listed_count": 0,
"screen_name": "qatemboo",
"profile_sidebar_border_color": "C0DEED",
"location": null,
"profile_image_url_https": "https://twimg0-a.akamaihd.net/sticky/default_profile_images/default_profile_3_normal.png",
"utc_offset": -18000,
"friends_count": 2,
"name": "Temboo QA",
"profile_background_tile": false,
"follow_request_sent": false,
"profile_sidebar_fill_color": "DDEEF6",
"notifications": false,
"protected": false,
"default_profile_image": true,
"profile_image_url": "http://a0.twimg.com/sticky/default_profile_images/default_profile_3_normal.png",
"entities": {
"description": {
"urls": []
}
},
"favourites_count": 0,
"profile_background_color": "C0DEED",
"is_translator": false,
"lang": "en",
"profile_background_image_url_https": "https://twimg0-a.akamaihd.net/images/themes/theme1/bg.png",
"id_str": "97731133",
"profile_background_image_url": "http://a0.twimg.com/images/themes/theme1/bg.png",
"created_at": "Fri Dec 18 19:23:06 +0000 2009",
"profile_link_color": "0084B4",
"default_profile": true,
"contributors_enabled": false,
"url": null,
"statuses_count": 30,
"verified": false,
"description": null,
"time_zone": "Quito",
"profile_use_background_image": true
},
"recipient_id": 97731133,
"entities": {
"urls": [],
"hashtags": [],
"user_mentions": []
},
"text": "Hello World",
"sender": {
"id": 97731133,
"profile_text_color": "333333",
"followers_count": 3,
"geo_enabled": false,
"following": false,
"listed_count": 0,
"screen_name": "qatemboo",
"profile_sidebar_border_color": "C0DEED",
"location": null,
"profile_image_url_https": "https://twimg0-a.akamaihd.net/sticky/default_profile_images/default_profile_3_normal.png",
"utc_offset": -18000,
"friends_count": 2,
"name": "Temboo QA",
"profile_background_tile": false,
"follow_request_sent": false,
"profile_sidebar_fill_color": "DDEEF6",
"notifications": false,
"protected": false,
"default_profile_image": true,
"profile_image_url": "http://a0.twimg.com/sticky/default_profile_images/default_profile_3_normal.png",
"entities": {
"description": {
"urls": []
}
},
"favourites_count": 0,
"profile_background_color": "C0DEED",
"is_translator": false,
"lang": "en",
"profile_background_image_url_https": "https://twimg0-a.akamaihd.net/images/themes/theme1/bg.png",
"id_str": "97731133",
"profile_background_image_url": "http://a0.twimg.com/images/themes/theme1/bg.png",
"created_at": "Fri Dec 18 19:23:06 +0000 2009",
"profile_link_color": "0084B4",
"default_profile": true,
"contributors_enabled": false,
"url": null,
"statuses_count": 30,
"verified": false,
"description": null,
"time_zone": "Quito",
"profile_use_background_image": true
},
"recipient_screen_name": "qatemboo",
"id": 281491057022214140,
"sender_screen_name": "qatemboo"
}