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

Update Example to include TwitterV2, fix TwitterV2 crash #467

Merged
merged 1 commit into from Aug 11, 2022

Conversation

IRelaxxx
Copy link
Contributor

@IRelaxxx IRelaxxx commented Aug 4, 2022

Add TwitterV2 Provider to the example, the Twitter provider does not work if you only have the Essentail API Access Level because it uses the v1.1 API to get userInfo(see Twitter API Docs)

Changes to TwitterV2 Provider per Twitter API Docs

  • Add Response fields, only id,name,username are default. Added description,profile_image_url,location
  • Remove E-Mail check/cast because the v2 API user info API does not contain the E-Mail
  • Add check for location because it can be nil if the user did not set a location

- fix twitterv2 endpointProfile request
- fix twitterv2 crashing when casting data
@techknowlogick techknowlogick merged commit d45583c into markbates:master Aug 11, 2022
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.

None yet

2 participants