vaishali khandagale
unread,Nov 10, 2011, 1:00:29 AM11/10/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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??