There appears to be 3 legged functionality in the library also
(osapi/auth/osapiOAuth3Legged.php).
I've got some simple calls working on a test site I have here:
http://www.statusexporter.com

The problem is that I cant get the identical calls to work on another
site I am trying to build on.
Here is the basic backbone of the relevant code:

$storage = new osapiFileStorage('/tmp/osapi');
$provider = new osapiOrkutProvider();
$auth = osapiOAuth3Legged::performOAuthLogin(OAUTH_CONSUMER_KEY,
OAUTH_CONSUMER_SECRET,
$storage,
$provider,
$localUserId);
$osapi = new osapi($provider, $auth);
$request = $osapi->people->get(array('userId'=>'@me'));
$request2 =
$osapi->people->get(array('userId'=>'@me', 'groupId'=>'@friends'));
$batch = $osapi->newBatch();
$batch->add($request, 'self_request');
$batch->add($request2, 'friends_request');
$result = $batch->execute();


This is the trace for the error I'm getting, which I pasted in my first
post:
#0 throw(...) called at [/osapi/io/osapiRpcIO.php:125]
#1 osapiRpcIO::sendBatch(Array, osapiOrkutProvider,
osapiOAuth3Legged, ) called at [/osapi/io/osapiBatch.php:62]
#2 osapiBatch->execute() called at [/index.php:52]

-- 
You received this message because you are subscribed to the Google Groups 
"orkut Developer Forum" group.
To post to this group, send email to opensocial-or...@googlegroups.com.
To unsubscribe from this group, send email to 
opensocial-orkut+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/opensocial-orkut?hl=en.

Reply via email to