Good day, everyone.
When i try post scrap without any url, it posts well.
But when i try to post any url, i have an error
{"error":{"message":"unauthorized: Please enter the text as it
is shown in the
box.","data":{"errorType":"requiresCaptcha","captchaUrl":"/social/pages/captcha?xid=1333951789263","captchaToken":"token1333951789263"},"code":401}}
I read at this group, that i need to request captcha using Oauth
When i try, i have 404 error
This is my code
$params = array(
'oauth_nonce' => md5(time()) ,
'oauth_version1.0' ,
'oauth_timestamp' => time() ,
'oauth_consumer_key' => "CONSUMER_KEY',
'oauth_token' =>'TOKEN',
'oauth_signature_method' => 'HMAC-SHA1'
);
$signature = $this->build_orkut_signature($params, 'CONSUMER_SECRET', false), 2);
$params['oauth_signature'] = $signature;
$client = $token->getHttpClient($this->getProviderConfig('orkut'));
$client->setUri('
http://www.orkut.com'.$content->error->data->captchaUrl);
$client->setMethod(Zend_Http_Client::GET);
$client->setParameterGet($params);
$client->setHeaders('Content-type', 'application/json');
$response = $client->request();
Can anybody help me?
Thanks.