Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

VerifyCredentials Error #235

Closed
EralpB opened this issue Jun 9, 2015 · 10 comments
Closed

VerifyCredentials Error #235

EralpB opened this issue Jun 9, 2015 · 10 comments

Comments

@EralpB
Copy link

EralpB commented Jun 9, 2015

print api.VerifyCredentials()
{"id": 16133, "location": "Philadelphia", "name": "bear"}

This is given on Readme, but what if its invalid, does the function raise TwitterError, another error or just return nil?

Thanks.

@bear
Copy link
Owner

bear commented Jun 9, 2015

The call was removed from the api - the README should be changed.

The best place to test credentials is now on the dev.twitter site

@jquacinella
Copy link

I might be confused but I do not think its removed from the API. Check: https://dev.twitter.com/rest/reference/get/account/verify_credentials

As a matter of fact, official Twiter developers refer to this API call as the only way of getting a user's email if you have sufficient permissions. Check for a post on Apr 27th by a Twitter dev on this link: https://twittercommunity.com/t/how-to-get-email-is-using-twitter-api-on-callback-page-using-php/404/207

This API should be updated, if anything, with correct parameters.

@jquacinella
Copy link

Playing with the function, adding data={"include_email": u"true"} to the VerifyCredentials() function does indeed return me an email now that I have correct permissions. I am going to fork this project and see if I can submit a patch (if you would like).

@bear
Copy link
Owner

bear commented Aug 12, 2015

please do @jquacinella - that would be much appreciated.

thanks for doing the research to answer this!

@thetylerhayes
Copy link

@jquacinella did you ever fork? would love love love to have include_email in this project

@jmgamboa
Copy link

Hi, im trying to use verify credentials with hellojs. Their token data response is in a weird format. according to this post its MrSwitch/hello.js#253 "clientid-accesstoken:tokensecret@consumerkey" I keep getting twitter.error.TwitterError:[{u'message': u'Could not authenticate you.', u'code': 32}]

i'm using the credentials directly from the hellojs site https://adodson.com/hello.js/#hellologin page. could it be the issue that because i was authenticating with their app and not my own, granting different permissions? I am not very familiar with the oauth so forgive me if this sounds off

@bear
Copy link
Owner

bear commented Dec 15, 2015

I think you may have the wrong python twitter library - or even the wrong js twitter library?

@jquacinella
Copy link

jquacinella commented Jul 21, 2016

Oh man, I completely forgot about this. I did make a fork, but that was back on Aug 12, 2015, almost a year ago (jquacinella@288c571 and jquacinella@1e6b64f). I assume this was never solved in another ticket, so all I would have to do is update my fork and submit a pull request?

@bear
Copy link
Owner

bear commented Jul 28, 2016

@jquacinella please do

(apologies for the delay in responding, I was AFK from the internet for the last week)

@jeremylow
Copy link
Collaborator

Landed in #376. Closing issue.

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

No branches or pull requests

6 participants