Added a new param to the Twython __init__ that lets you select the authe... #240
No reviewers
Labels
No labels
Bug
Enhancement
Feature Suggestion
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: code/twython#240
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
We couldn't access twitter direct messages via our application, even if the application had Read, Write and Access permissions Twitter oauth authorize app page still said: This application will not be able to: Access your direct messages
Found out that the correct endpoint for giving access to Direct Messages was authorize instead of authenticate.
You don't actually have to add the parameter to the
__ini__Just change the endpoint to
oauth/authorizeThe only difference between oauth/authorize and oauth/authenticate is that Desktop apps can not use oauth/authenticate.So yeah, just revert the current changes and change the endpoint from
oauth/authenticatetooauth/authorizeand I'll be glad to merge this!Shouldn't Twython support both methods? That way Twython could support both options implemented by the Twitter API.
From GET oauth/authenticate section in the Twitter API:
What do you think?
Hrm, I'm not sure why you were getting the message
I created a new application and used the current build of Twython and it says that the app will be able to access my DMs.
By chance, were you already authenticated with an app that didn't have access to direct messages then try to re-authenticate with it after you set your app permissions?
No, my application had DM permissions since the beginning, but when trying to authenticate it I kept getting the "No DM access" message from Twitter, it was fixed changing the URL directly in the browser from authenticate to authorize. That's why I added the option to Twython.
@jackboot7 Sorry for not following up with this, one last question. Is your application a Desktop application or a Web application?
A web application, once I changed the endpoint to ouath/authorize I had the authentication flow working as it should.
I don't think is a Twython problem but Twitter's, since I got the right permissions once I changed the endpoint (directly in the URL bar in my browser).
Fair enough, I'll merge this. Still, such strange behavior 😵
Cool :)