webhook2_direct_message.json 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. {
  2. "headers" : {
  3. "x-twitter-webhooks-signature" : "sha256=wYiCk7gfAgrnerCpj3XD58hozfVDjcQvcYPZCFH+stU="
  4. },
  5. "params": {
  6. "for_user_id": "123",
  7. "direct_message_events": [
  8. {
  9. "type": "message_create",
  10. "id": "1063077238797725700",
  11. "created_timestamp": "1542292339406",
  12. "message_create": {
  13. "target": {
  14. "recipient_id": "123"
  15. },
  16. "sender_id": "456",
  17. "message_data": {
  18. "text": "Hello Zammad #zammad @znuny\n\nYeah! https://t.co/UfaCwi9cUb",
  19. "entities": {
  20. "hashtags": [
  21. {
  22. "text": "zammad",
  23. "indices": [13,20]
  24. }
  25. ],
  26. "symbols": [],
  27. "user_mentions": [
  28. {
  29. "screen_name": "znuny",
  30. "name": "Znuny / ES for OTRS",
  31. "id": 789,
  32. "id_str": "789",
  33. "indices": [21, 27]
  34. }
  35. ],
  36. "urls": [
  37. {
  38. "url": "https://t.co/UfaCwi9cUb",
  39. "expanded_url": "https://twitter.com/messages/media/1063077238797725700",
  40. "display_url": "pic.twitter.com/UfaCwi9cUb",
  41. "indices": [35, 58]
  42. }
  43. ]
  44. },
  45. "attachment": {
  46. "type": "media",
  47. "media": {
  48. "id": 1063077198536556545,
  49. "id_str": "1063077198536556545",
  50. "indices": [35, 58],
  51. "media_url": "https://ton.twitter.com/1.1/ton/data/dm/1063077238797725700/1063077198536556545/9FZgsMdV.jpg",
  52. "media_url_https": "https://ton.twitter.com/1.1/ton/data/dm/1063077238797725700/1063077198536556545/9FZgsMdV.jpg",
  53. "url": "https://t.co/UfaCwi9cUb",
  54. "display_url": "pic.twitter.com/UfaCwi9cUb",
  55. "expanded_url": "https://twitter.com/messages/media/1063077238797725700",
  56. "type": "photo",
  57. "sizes": {
  58. "thumb": {
  59. "w": 150,
  60. "h": 150,
  61. "resize": "crop"
  62. },
  63. "medium": {
  64. "w": 1200,
  65. "h": 313,
  66. "resize": "fit"
  67. },
  68. "small": {
  69. "w": 680,
  70. "h": 177,
  71. "resize": "fit"
  72. },
  73. "large": {
  74. "w": 1472,
  75. "h": 384,
  76. "resize": "fit"
  77. }
  78. }
  79. }
  80. }
  81. }
  82. }
  83. }
  84. ],
  85. "users": {
  86. "456": {
  87. "id": "456",
  88. "created_timestamp": "1290730789000",
  89. "name": "Martin Edenhofer",
  90. "screen_name": "medenhofer",
  91. "description": "Open Source professional and geek. Also known as #OTRS and #Zammad inventor. ;)\r\nEntrepreneur and Advisor for open source people in need.",
  92. "url": "https://t.co/whm4HTWdMw",
  93. "protected": false,
  94. "verified": false,
  95. "followers_count": 312,
  96. "friends_count": 314,
  97. "statuses_count": 222,
  98. "profile_image_url": "http://pbs.twimg.com/profile_images/794220000450150401/D-eFg44R_normal.jpg",
  99. "profile_image_url_https": "https://pbs.twimg.com/profile_images/794220000450150401/D-eFg44R_normal.jpg"
  100. },
  101. "123": {
  102. "id": "123",
  103. "created_timestamp": "1476091912921",
  104. "name": "Zammad HQ",
  105. "screen_name": "zammadhq",
  106. "description": "Helpdesk and Customer Support made easy. Open Source for download or to go with SaaS. #zammad",
  107. "url": "https://t.co/XITyrXmhTP",
  108. "protected": false,
  109. "verified": false,
  110. "followers_count": 427,
  111. "friends_count": 512,
  112. "statuses_count": 437,
  113. "profile_image_url": "http://pbs.twimg.com/profile_images/785412960797745152/wxdIvejo_normal.jpg",
  114. "profile_image_url_https": "https://pbs.twimg.com/profile_images/785412960797745152/wxdIvejo_normal.jpg"
  115. }
  116. }
  117. }
  118. }