Any idea of what I'm doing wrong.
I'm no expert on this subject and just broke my head over it for the last few hours. So I'm kinda depleted of things to try.
I can give yu my secret as well (as it's just a test account I made on stocktwits).
If I/we get this working, this could be merged with your class for anyone else to benefit (as there doesn't seem to be much support for Stocktwits on oauth clients as it seems). I know the guys at stocktwits, so they could then add your class to http://stocktwits.com/developers/docs/libraries
Kind regards and thank you for considering helping me out.
Dirk Vandycke - 2013-02-11 09:09:26 - In reply to message 2 from Manuel Lemos
I got it to work a bit more
But not completely
It seems that my login_with_stocktwits.php now gets called a second time with a url parameter named code.
But when I add
print 'https://api.stocktwits.com/api/2/account/verify.json?access_token=' . $_GET['code'];//checking if url is right
$client = new oauth_client_class;
//$client->access_token = $code;
$client->CallAPI('https://api.stocktwits.com/api/2/account/verify.json?access_token=' . $_GET['code'], 'GET', array(), array(), $response);
I get a 401 response (it's as if I'm not authorized)
As a non-expert it also seems strange to me that I have to deal with it like this (to catch the roundtrip). As you don't do something like this in your examples for other API's.