Im trying to access my and my friends' activities through php client
libraries. Im getting error 401.

unauthorized: Get activity permission denied

$provider = new osapiOrkutProvider();
$auth = new osapiOAuth2Legged("OAuth Consumer Key", "OAuth Consumer
Secret");
$osapi = new osapi($provider, $auth);

$user_params = array(
      'userId' => '@me',
      'groupId' => '@self',
      'count' => 10
  );

$batch->add($osapi->activities->get($user_params), 'userActivities');
$result = $batch->execute();

please help me with this
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenSocial Application Development" group.
To post to this group, send email to opensocial-api@googlegroups.com
To unsubscribe from this group, send email to 
opensocial-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/opensocial-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to