Error getting twitter request token using OAuth and PEAR Services_Twitter

Posted by Onema on Stack Overflow See other posts from Stack Overflow or by Onema
Published on 2010-05-24T17:42:22Z Indexed on 2010/05/24 23:51 UTC
Read the original article Hit count: 318

Filed under:
|
|
|
|

Hello, I am moving from the basic authentication method using username and password to the OAuth based authentication.

I was using an old version of the pear package Services_Twitter, that did not support OAuth. The latest version of this package supports OAuth authentications, it has a few dependencies (HTTP_Request2, HTTP_OAuth).

It was very simple to install them and upgrade the package. I did all this my local machine and had no trouble getting the authentication up and running.

I committed this code to the test site, but every time the code request a "request token" I get the following error message "Unable to connect to ssl://api.twitter.com:443. Error #0"

I have spend 6 hours making sure that all the pear packages where up to date, checking the customer token and token secret, making sure port 443 is not closed... in addition to various other test.

I have exhausted my resources and I come to you in hope to find some answers.

Thank you

PD: One of the things I do not understand is why does the message says that the url is ssl://api.twitter.com:443 rather than https://api.twitter.com/request_token? the former one is the one I am using to get the request token.

© Stack Overflow or respective owner

Related posts about api

Related posts about authentication