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

twitterv2.go FetchUser function failed #472

Closed
kmlixh opened this issue Oct 8, 2022 · 1 comment
Closed

twitterv2.go FetchUser function failed #472

kmlixh opened this issue Oct 8, 2022 · 1 comment

Comments

@kmlixh
Copy link

kmlixh commented Oct 8, 2022

when i use twitterv2.go to get the user profile, something wrong.(the current twitterv2 api changed?)
user.Description = user.RawData["description"].(string) user.AvatarURL = user.RawData["profile_image_url"].(string) user.UserID = user.RawData["id"].(string) user.Location = user.RawData["location"].(string)
because there was no 'description' inside of the user.RawData.

user.RawData only had "id,name,username"
if we want to get "descrition,profile_image_url,location",we should change the code:

Original:

response, err := p.consumer.Get( endpointProfile, nil, sess.AccessToken)
when i clone code to local, i find this bug was fixed.

we need a new tag contain this 'fix'

@techknowlogick
Copy link
Collaborator

just tagged v1.73.1, thanks for the ping :)

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

No branches or pull requests

2 participants