Getting error while sending message..

4 views
Skip to first unread message

vaishali khandagale

unread,
Nov 10, 2011, 1:00:29 AM11/10/11
to Orkut php client
HI..
I want to create a Orkut API in my site to send messages to the orkut
friends..
For that I have changed the code given in Orkut OS php client
somewhat..
Now firstly I am fetching the contacts from orkut using following
code ,and it is working fine:

$orkutApi= new Orkut($this->API_CONFIG['appKey'], $this-
>API_CONFIG['appSecret']);

$orkutApi->login($this->API_CONFIG['callbackUrl']);

$friends = new Friends($orkutApi);
$friends->fetchUsers();
$contacts=$friends->execute();

No I am using the following code to send the Invites:

$orkutApi= new Orkut($this->API_CONFIG['appKey'], $this-
>API_CONFIG['appSecret']);
orkutApi->login($this->API_CONFIG['callbackUrl']);

$send_scrap = new Scrap($orkutApi);
$resp=$send_scrap->send($post['contacts'], $message);


but it is giving me following error:
Array ( [0_15340615655661304752] => Array ( [id] =>
0_15340615655661304752 [error] => Array ( [message] => unauthorized:
Please enter the text as it is shown in the box. [data] => Array
( [errorType] => requiresCaptcha [captchaUrl] => /social/pages/captcha?
xid=1320904715067 [captchaToken] => token1320904715067 ) [code] =>
401 ) ) )

Can you please look into this??

Robson Dantas

unread,
Nov 16, 2011, 8:39:50 AM11/16/11
to orkut-ph...@googlegroups.com
You need to solve the captcha. Take a look the example provided on the library (test folder) to have an idea about how to solve it.

Best

Robson
Reply all
Reply to author
Forward
0 new messages