Closed mcintyre94 closed 3 years ago
Oops, this was my mistake! I thought twurl was defining the permissions requested but they're actually coming from the application defined in the developer portal. You need to edit the permission of the app to be "Read, Write, and Direct Messages", and then re-authorize and you'll get the correct permissions. Closing :)
Describe the bug
In the docs for the DM list API: https://developer.twitter.com/en/docs/twitter-api/v1/direct-messages/sending-and-receiving/api-reference/list-events
The
twurl
example given is:twurl -X GET /1.1/direct_messages/events/list.json
When I run this I get
{"errors":[{"code":93,"message":"This application is not allowed to access or delete your direct messages."}]}%
To Reproduce Steps to reproduce the behavior:
twurl authorize --consumer-key <snip> --consumer-secret <snip>
twurl -X GET /1.1/direct_messages/events/list.json
(directly copied from documentation)Expected behavior
A successful response. For example (from the docs):
Actual behavior
{"errors":[{"code":93,"message":"This application is not allowed to access or delete your direct messages."}]}%
Screenshots
Auth UI:
Desktop (please complete the following information):