I have subscribed two users for a webhook url. I had mentioned one user in another user’s tweet and got same response payload for two times from twitter. How do I identify the user to whom the response has been received.
Here I have attached response for your reference
{
"tweet_create_events":[
{
"created_at":"Tue Apr 10 05:08:57 +0000 2018",
"id":983572522619711488,
"id_str":"983572522619711488",
"text":"@Sample2511 mention tweet 2",
"source":"\u003ca href=\"http:\/\/twitter.com\" rel=\"nofollow\"\u003eTwitter Web Client\u003c\/a\u003e",
"truncated":false,
"in_reply_to_status_id":null,
"in_reply_to_status_id_str":null,
"in_reply_to_user_id":949259913468903427,
"in_reply_to_user_id_str":"949259913468903427",
"in_reply_to_screen_name":"Sample2511",
"user":{
"id":973443365868994561,
"id_str":"973443365868994561",
"name":"Amsaveni Rajasekar",
"screen_name":"R_Amsaveni",
"location":null,
"url":null,
"description":null,
"translator_type":"none",
"protected":false,
"verified":false,
"followers_count":0,
"friends_count":0,
"listed_count":0,
"favourites_count":2,
"statuses_count":20,
"created_at":"Tue Mar 13 06:19:18 +0000 2018",
"utc_offset":null,
"time_zone":null,
"geo_enabled":false,
"lang":"en",
"contributors_enabled":false,
"is_translator":false,
"profile_background_color":"F5F8FA",
"profile_background_image_url":"",
"profile_background_image_url_https":"",
"profile_background_tile":false,
"profile_link_color":"1DA1F2",
"profile_sidebar_border_color":"C0DEED",
"profile_sidebar_fill_color":"DDEEF6",
"profile_text_color":"333333",
"profile_use_background_image":true,
"profile_image_url":"http:\/\/abs.twimg.com\/sticky\/default_profile_images\/default_profile_normal.png",
"profile_image_url_https":"https:\/\/abs.twimg.com\/sticky\/default_profile_images\/default_profile_normal.png",
"default_profile":true,
"default_profile_image":false,
"following":null,
"follow_request_sent":null,
"notifications":null
},
"geo":null,
"coordinates":null,
"place":null,
"contributors":null,
"is_quote_status":false,
"quote_count":0,
"reply_count":0,
"retweet_count":0,
"favorite_count":0,
"entities":{
"hashtags":[
],
"urls":[
],
"user_mentions":[
{
"screen_name":"Sample2511",
"name":"sample",
"id":949259913468903427,
"id_str":"949259913468903427",
"indices":[
0,
11
]
}
],
"symbols":[
]
},
"favorited":false,
"retweeted":false,
"filter_level":"low",
"lang":"fr",
"timestamp_ms":"1523336937943"
}
]
}
Thanks in advance