can some one tell me why this code does not work...
require_once "path.to.osapi/osapi/osapi.php";
$appKey = '###########################';
$appSecret = '#########################################';
$userId = '527079626';
$appId = '198549';
$osapi = new osapi(new osapiMySpaceProvider(), new osapiOAuth2Legged($appKey, $appSecret, $userId));
$batch = $osapi->newBatch();
$params = array('statusMood'=>
array(
'sharedLinkInfo' => array(
'description' => 'Description',
'linkUrl' => 'http://deporteshn.com',
'thumbnailUrl' => 'http://deporteshn.com/admin/noticias/images/images120/180.jpg',
'title' => 'Title'
),
'source' => array(
'imageUrl' => 'http://deporteshn.com/images/icono.jpg',
'name' => 'Name'
),
'status' => 'Status'
)
);
$batch->add($osapi->statusmood->update($params), 'set_status_mood');
$result = $batch->execute();
Result : Array ( [set_status_mood] => Array ( [id] => @self ) )
Json : {"statusMood":{"sharedLinkInfo":
{"description":"Description","linkUrl":"http:\/\/deporteshn.com","thumbnailUrl":"http:\/\/deporteshn.com\/admin\/noticias\/images\/images120\/180.jpg","title":"Title"},"source":
{"imageUrl":"http:\/\/deporteshn.com\/images\/icono.jpg","name":"Name"},"status":"Status"}}
Response for the set_status_mood request:
Array
(
[id] => @self
)
It looks fine, but the image is missing.
Atte. Jose