Freelancer API snowtigerlib Wrapper Class for PHP didn't work - php

I used snowtigerlib freelancer api, it is a php wrapper class. I downloaded the full code from this link
Then I setup SnowTigerLib_Config.inc file with my key and secret. Then I did the following step:
First it went to the following url.
Then I logged in to sandbox with my username and password.
Next step, it went the following url.
Here Authenticate API Access was authorized.
After Authorizing API access it went the following url
Here it shows that it is authorized and the automatically redirect into my callback url with following error:
ERROR
Notice: Undefined index: token in ..........\callback.php on line 4
HTTP Error: http_code:401 in ...............\SnowTigerLib.php on line 455
Details: http://api.sandbox.freelancer.com/RequestAccessToken/requestAccessToken.xml?oauth_consumer_key=7484ba1fdfa9138ec77ead0c881966ad43f194ba&oauth_nonce=5a9b4e19b1fcd551e416d8e1fa86ab50&oauth_signature=LKRcVWNRdE%2BIzAzem2svR%2F0OiG8%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1356949656&oauth_verifier=4a24c84d5b49465a51ca990e2114945894896ed6&oauth_version=1.0
Please give me reply if anybody knows this issue.

Related

Cannot obtain token...site not reachable

I'm using the sample code provided by DocuSign quickstarts. That code requires me to obtain an access token.
It says to visit the link below in order to obtain the token:
https://developers.hqtest.tst/oauth-token-generator
I get error message:
This site can’t be reached.
developers.hqtest.tst’s server IP address could not be found.
Very sorry, the url you have there is a test/internal url which should not have been published. If you can point me to where you found it - w'ell fix it.
The correct url for our token generator is: https://developers.docusign.com/oauth-token-generator

Oauth API client getting Error

Can anyone tell how I can implement a Oauth api for my site.I have downloaded the example from http://code.google.com/p/oauth-php/downloads/list(oauth-php-175.tar.gz)
I have created the database and run the register.php file in example/server and i got a consumer key and secret key.I have replaced the api key and secret key with this in client/twolegged.php.The url mentioned their is replaced with server/www/hello.php
But when i run the file client/twolegged.php am getting the error
ExceptionRequest failed with code 401: Can't verify request, missing oauth_consumer_key or oauth_token-OAuth Verification Failed:
Is it the correct way to do this? Please help me?
Use
$server->verifyIfSigned(false)
instead of
$server->verifyIfSigned()
in hello.php

facebook app token instead user token php sdk

i don't know why when i'm using facebook php sdk 3.1.1 on codeigniter with following code:
...
...
$this->config->load('facebook', TRUE);
$config = $this->config->item('facebook');
$this->load->library('facebook', $config);
echo $this->facebook->getAccessToken();
....
i retrieve app access token instead ( the correct ) user access token.
infact when i try to call
$this->facebook->api('/me')
php return me an error like this
Fatal error: Uncaught OAuthException: An active access token must be used to query information about the current user. thrown in
/srv/www/...
i've try to change library version until 3.0, but nothing changed
Anyone know something about that?
/me returns your personal profile info. If you want to query /me, you need to authenticate via a user access token, which is above the app level access token.
Peruse at your leisure: https://developers.facebook.com/docs/authentication/

Facebook application error- Access Token

I have made new Facebook application, and when I am trying to allow "post to profile", I am getting this error:
Fatal error: Uncaught OAuthException: An active access token must be used to query information about the current user. thrown in /home/mimota/public_html/gamingapp.com/test/src/base_facebook.php on line 1024
Thats part of the base_facebook.php file:
http://codeviewer.org/view/code:2263
I have marked there where is line 1024
I will really appriciate if some one could figure out whats wrong here, because I have no clue..
Thanks.
Use a URL of the following format to log into facebook:
https://graph.facebook.com/oauth/authorize?client_id=288229791195831&redirect_uri=http://www.facebook.com/connect/login_success.html&type=user_agent&display=popup&scope=publish_stream,user_photos,read_stream,email
They will give you a token back which you will use when you send requests:
For example to see get the main photo URL use:
https://graph.facebook.com/me/picture&access_token=THE_TOKEN_YOU_GOT_BACK
To post to wall replace /me/picture with whatever you need to post (sth like /me/wall)

simple-linkedinphp: Undefined index: oauth

I'm using simple-linkedinphp and OAuth library to connect to LinkedIn. When I run demo.3.0.2.php, connect with LinkedIn and press the blue button "Ok, I'll allow" I get the error:
Notice: Undefined index: oauth on line 136.
LinkedIn->retrieveTokenAccess(): bad data passed, string type is required for $token, $secret and $verifier.
Examining the problem further it seems the session data is lost when LinkedIn returns to the script. cURL does seem to start a new session instead of using the initial session.
The following line in my config file caused the trouble:
ini_set("session.cookie_domain", ".mywebsite.com");
Commenting this out solved the problem.

Categories