Using with postman plugin, with this configuration:
Authorization: type Oauth 1.0, consumer key, consumer secret, token, and token secret with the values corresponding to the app, signature hmac-sha1, version 1.0
Headers: content-type : application/json
body: data = {“event”: {“type”: “message_create”, “message_create”: {“target”: {“recipient_id”: “RECIPIENT_USER_ID”}, “message_data”: {“text”: “Hello World!”}}}} with valid recipient_id
Result
{
"errors": [
{
"code": 215,
"message": "Bad Authentication data."
}
]
}
If we add “add params to header”, the error changes to:
“415 unsupported media type”
cache-control →no-cache, no-store, must-revalidate, pre-check=0, post-check=0
content-length →0
content-security-policy →default-src ‘self’; connect-src ‘self’; font-src ‘self’ https://.twimg.com https://twitter.com https://ton.twitter.com data:; frame-src ‘self’ https://.twimg.com https://twitter.com https://ton.twitter.com; frame-ancestors ‘self’; img-src ‘self’ https://.twimg.com https://twitter.com https://ton.twitter.com data:; media-src ‘self’ https://.twimg.com https://twitter.com https://ton.twitter.com; object-src ‘none’; script-src ‘self’ https://.twimg.com https://twitter.com https://ton.twitter.com; style-src ‘self’ https://.twimg.com https://twitter.com https://ton.twitter.com; report-uri https://twitter.com/i/csp_report?a=NVQWGYLXFVSG2%3D%3D%3D&ro=false;
content-type →text/html;charset=utf-8
date →Tue, 25 Sep 2018 22:55:14 GMT
expires →Tue, 31 Mar 1981 05:00:00 GMT
last-modified →Tue, 25 Sep 2018 22:55:14 GMT
pragma →no-cache
server →tsa_d
status →415, 415 Unsupported Media Type
strict-transport-security →max-age=631138519
x-access-level →read-write-directmessages
x-connection-hash →
x-content-type-options →nosniff
x-frame-options →SAMEORIGIN
x-response-time →143
x-transaction →00a7708800eda85e
x-tsa-request-body-time →0
x-twitter-response-tags →BouncerCompliant
x-xss-protection →1; mode=block; report=https://twitter.com/i/xss_report
Missing to configure something? Via backend of our system, the migration is not working, so we try to find the problem manually first. Thanks