Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API deprecations #47

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

API deprecations #47

wants to merge 3 commits into from

Conversation

MHova
Copy link

@MHova MHova commented Jun 3, 2019

#44 partially addressed these announced Twitter API changes, but JSON parsing of User objects will still fail unless the rest of the deprecated fields are fixed.

This PR removes all of the deprecated fields altogether. The Twitter documentation states that those fields will only have a value of null from now on anyway.

Michael Ho added 3 commits June 3, 2019 13:48
Wrapping a Maybe around the userLang field (which was done in a previous commit) was just the tip of the iceberg. There are many other fields that are now nullable that weren't previously and will cause JSON parsing errors. We *could* just wrap Maybes around all of those fields, but as those fields are always going to be null from now on, it's probably better to just remove them altogether.

https://twittercommunity.com/t/upcoming-changes-to-user-object-and-get-users-suggestions-endpoints/124732
Perhaps this was once a field in the User object, but it is no longer.

https://developer.twitter.com/en/docs/tweets/data-dictionary/overview/user-object
@MHova
Copy link
Author

MHova commented Jun 3, 2019

Note that twitter-conduit has a dependency on userProfileImageUrl here. That will have to be removed (or switched to userProfileImageUrlHttps) for twitter-conduit to be compatible with the changes in this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant