qiang - 2013-05-27 03:35:05 -
In reply to message 2 from Manuel Lemos
Hello, Manuel Lemos
First of all , thanks for your class.
I want to use your class for odesk api integration, but can't get access token.
I set those values.
$client->redirect_uri = 'http://'.$_SERVER['HTTP_HOST'].
dirname(strtok($_SERVER['REQUEST_URI'],'?')).'/login_with_odesk.php';
$client->client_id = 'af80152e5fa61ad20af07e89db00XX';
$client->client_secret = 'b0929aefeb75a579XXX';
$client->oauth_version = '1.0';
$client->request_token_url = 'https://www.odesk.com/api/auth/v1/oauth/token/request';
$client->access_token_url = 'https://www.odesk.com/api/auth/v1/oauth/token/access';
$client->dialog_url = 'https://www.odesk.com/services/api/auth';
$client->token_request_method = 'POST';
$client->url_parameters = true;
$client->scope = '';
After process() function , I got 401 error.
Do you have any clues for that?
Thanks for your time.
Qiang