kyogaraj / opensocial-php-client

Automatically exported from code.google.com/p/opensocial-php-client
Apache License 2.0
0 stars 0 forks source link

Orkut media items does not work. #63

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.after a successful request to albums list.
  - getting the album id.
  - calling to a mediaItems->get method like so:

$aid = 'THE ID OF AN ALBUM I'VE GOT IN THE PREVIOUS REQUEST'; 
$user_params = array(
         'userId' => "@me", 
         'groupId' => '@self', 
         'albumId' => $aid
    );

$batch->add($this->osapi->mediaItems->get($user_params),'get_mediaItems');
$result = $batch->execute();     

What is the expected output? What do you see instead?
expected: Array of photos.
got: Error 501 notImplemented: The method mediaItems.get is not implemented
What version of the product are you using? On what operating system?
The latest.

Please provide any additional information below.
This method works fine for Myspace.

Original issue reported on code.google.com by Shalom.S...@gmail.com on 11 Nov 2009 at 12:17

GoogleCodeExporter commented 9 years ago
I've found the problem.
Orkut methods are all lowercase and the method mediaItems.get (on osapi) 
should be mediaitems.get, but since there are other providers (like myspace) 
that
accept the mediaitem as it is right now (mediaItems.get), the best way to handle
this, is to fix the method name locally in the osapiOrkutProvider.php file 

Original comment by Shalom.S...@gmail.com on 11 Nov 2009 at 8:03