Added support for the new direct message endpoints #500
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#500
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?
This adds support for the new event based direct messages methods, available after August 16. In particular, get_direct_messages, get_direct_message, send_direct_message and destroy_direct_message were changed to the new methods provided in Twitter. Take into account that new objects (events) are returned for all GET methods related to direct messages, and in order to send a direct message you have to send an event in a dictionary as specified in the Documentation of this method. Also, the function get_send_messages should be removed, as is no longer possible to use that endpoint.
Coverage increased (+0.02%) to 57.467% when pulling
4f29fd041bon manuelcortez:master intoc9e8a46200on ryanmcgrath:master.@michaelhelmick Could you look at this please? I'm pretty sure it can be merged (and it needs to!). The library is behind Twitter's state of things, unfortunately. Thanks!
@ -135,13 +135,13 @@ class Twython(EndpointsMixin, object):def __repr__(self):I think
json_encoded is Falsewould be better.@ -153,11 +153,16 @@ class Twython(EndpointsMixin, object):if k in ('timeout', 'allow_redirects', 'stream', 'verify'):Seems single quotes are part of the project code style. 🤔
@ryanmcgrath @michaelhelmick Any insights on this? Could you please merge this in?
Offhand it looks okay to me, but in case anyone's not noticed, Mike clearly pays more attention than I do these days. :(
Side note: I believe there was a call for maintainers put out a few months ago, or at least for extra helping hands re: committing/merging... did that fall through the cracks?
Thanks @ryanmcgrath! The PR was submitted in September, so I'm pinging as I'm also interested in this particular change :).
@ryanmcgrath I didn't know you were looking for contributors. I would be up for helping in what is needed, instead of keeping my own fork up to date with Twitter's last changes. Let me know if you need me to send changes to the pr.
Hi all!
Sorry, this must have missed my inbox.
@ryanmcgrath Not sure if the call for contributors fell through, but I'll try and put one out after the Thanksgiving holiday (with @manuelcortez being a lead candidate :))!
The only issue I see with this is that
data_keyis spaced in a bit far under the firstif, fix that and I'll merge this.Please count my vote for @manuelcortez :). He develops an influential Twitter client for blind and visually impaired. I also develop such a client, but my audience is smaller, and my code is in a far messier state, unfortunately.
@ryanmcgrath @michaelhelmick What is the status of This? Can it be merged?