Dear Team,
It seems the API response for DM api has been changed and it is not according to the mentioned structure.
We tried DM api with account id germin8 and got response as -
( It seems value for user_mentions field is populated in sender.entities.description.url field )
{
"sender_id_str": "200081690",
"created_at": "Tue Sep 13 05:54:14 +0000 2016",
"sender_id": 200081690,
"recipient_id_str": "727913028",
"recipient_screen_name": "sai_srivatsan",
"sender": {
"utc_offset": 19800,
"friends_count": 80,
"profile_image_url_https": "https://pbs.twimg.com/profile_images/575395707030392832/EkTpA3Xv_normal.jpeg",
"listed_count": 4,
"profile_background_image_url": "http://abs.twimg.com/images/themes/theme2/bg.gif",
"default_profile_image": false,
"favourites_count": 19,
"description": "Programmer | Gamer | Kishore Kumar fan | Works @germin8",
"created_at": "Fri Oct 08 12:04:22 +0000 2010",
"is_translator": false,
"profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme2/bg.gif",
"protected": false,
"screen_name": "himanshumishra_",
"id_str": "200081690",
"profile_link_color": "4A913C",
"is_translation_enabled": false,
"id": 200081690,
"geo_enabled": true,
"profile_background_color": "000000",
"lang": "en",
"has_extended_profile": false,
"profile_sidebar_border_color": "000000",
"profile_text_color": "000000",
"verified": false,
"profile_image_url": "http://pbs.twimg.com/profile_images/575395707030392832/EkTpA3Xv_normal.jpeg",
"time_zone": "Mumbai",
"url": null,
"contributors_enabled": false,
"profile_background_tile": false,
"profile_banner_url": "https://pbs.twimg.com/profile_banners/200081690/1426019514",
"entities": {
"description": {
"urls": [
{
"indices": [
47,
55
],
"screen_name": "germin8",
"id_str": "64425707",
"name": "Germin8",
"id": 64425707
}
]
}
},
"statuses_count": 116,
"follow_request_sent": false,
"followers_count": 128,
"profile_use_background_image": false,
"default_profile": false,
"following": false,
"name": "Himanshu Mishra",
"location": "Mumbai, India",
"profile_sidebar_fill_color": "000000",
"notifications": false
},
"sender_screen_name": "himanshumishra_",
"entities": {
"urls": [],
"hashtags": [],
"user_mentions": [],
"symbols": []
},
"id_str": "775573281072111619",
"recipient": {
"utc_offset": 19800,
"friends_count": 70,
"profile_image_url_https": "https://pbs.twimg.com/profile_images/2451283292/IMG_0487_normal.JPG",
"listed_count": 3,
"profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png",
"default_profile_image": false,
"favourites_count": 5,
"description": "A very simple person by living. Love travelling alone and listening to music and dancing.",
"created_at": "Tue Jul 31 08:29:44 +0000 2012",
"is_translator": false,
"profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png",
"protected": false,
"screen_name": "sai_srivatsan",
"id_str": "727913028",
"profile_link_color": "0084B4",
"is_translation_enabled": false,
"id": 727913028,
"geo_enabled": true,
"profile_background_color": "C0DEED",
"lang": "en",
"has_extended_profile": false,
"profile_sidebar_border_color": "C0DEED",
"profile_text_color": "333333",
"verified": false,
"profile_image_url": "http://pbs.twimg.com/profile_images/2451283292/IMG_0487_normal.JPG",
"time_zone": "New Delhi",
"url": null,
"contributors_enabled": false,
"profile_background_tile": false,
"entities": {
"description": {
"urls": []
}
},
"statuses_count": 264,
"follow_request_sent": false,
"followers_count": 123,
"profile_use_background_image": true,
"default_profile": true,
"following": true,
"name": "Sai Srivatsan",
"location": "",
"profile_sidebar_fill_color": "DDEEF6",
"notifications": false
},
"id": 775573281072111600,
"text": "Hi Sai.. DM using screen names",
"recipient_id": 727913028
}
Response for Non-DM Api
{
"utc_offset": 19800,
"friends_count": 80,
"profile_image_url_https": "https://pbs.twimg.com/profile_images/575395707030392832/EkTpA3Xv_normal.jpeg",
"listed_count": 4,
"profile_background_image_url": "http://abs.twimg.com/images/themes/theme2/bg.gif",
"default_profile_image": false,
"favourites_count": 19,
"description": "Programmer | Gamer | Kishore Kumar fan | Works @germin8",
"created_at": "Fri Oct 08 12:04:22 +0000 2010",
"is_translator": false,
"profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme2/bg.gif",
"protected": false,
"screen_name": "himanshumishra_",
"id_str": "200081690",
"profile_link_color": "4A913C",
"is_translation_enabled": false,
"id": 200081690,
"geo_enabled": true,
"profile_background_color": "000000",
"lang": "en",
"has_extended_profile": false,
"profile_sidebar_border_color": "000000",
"profile_text_color": "000000",
"verified": false,
"profile_image_url": "http://pbs.twimg.com/profile_images/575395707030392832/EkTpA3Xv_normal.jpeg",
"time_zone": "Mumbai",
"url": null,
"contributors_enabled": false,
"profile_background_tile": false,
"profile_banner_url": "https://pbs.twimg.com/profile_banners/200081690/1426019514",
"entities": {
"description": {
"urls": []
}
},
"statuses_count": 116,
"follow_request_sent": false,
"followers_count": 128,
"profile_use_background_image": false,
"default_profile": false,
"following": false,
"name": "Himanshu Mishra",
"location": "Mumbai, India",
"profile_sidebar_fill_color": "000000",
"notifications": false
}
Because of this changes our application is not working.
Kindly let us know is there any change in Twitter API or there is some issue.
Appreciating your support.
Thank You,
Vaibhav Shah