Hello,
I try to understand how works the API to connect using OAuth but it doesn't work. I tried both on an personal instance and on identi.ca
I registered an application on /settings/oauthapps/ and got a consumer_key and a consumer_secret.
I tried using the url : /api/oauth/request_token?oauth_callback=oob&consumer_key=12345&consumer_secret=54321 (keys are copy-paste, I checked, no error there) but I have an error "Invalid consumer key".
(If you want, send me a PM, I can send you a screen of the config with the consumer key and secret.)
I tried also using the instructions form this post
http://demongin.org/blog/862/I have an SSL error with identi.ca
"httplib2.SSLHandshakeError: [Errno 1] _ssl.c:503: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed"
With my statusnet instance (no SSL), I got the content 'Invalid consumer' with an error 401.
Any idea why ? Am I doing something wrong ?
Thank you
Comments
Instead of doing dummy request from the url, I use the api with a tool like request-oauth in python
https://github.com/maraujop/requests-oauth
OAuthHook.consumer_key = ckey
OAuthHook.consumer_secret = csecret
oauth_hook = OAuthHook()
client = requests.session(hooks={'pre_request': oauth_hook})
response = client.post('%soauth/request_token' % (url), {'oauth_callback': 'oob'})