Error i have got :
Exception Insufficient permissions 9 xml POST 1328766775
try {
$api = new PBAPI($key, $sec);
$resp = $api->login('request')->post()->getResponseString();
$api->loadTokenFromResponse();
$authToken=$api->getOAuthToken()->getKey();
$oauth_token_secret=$api->getOAuthToken()->getSecret();
$api->setOAuthToken($authToken, $oauth_token_secret); //ricolifts
$resp1 = $api->login('access')->post()->getResponseString();
$api->loadTokenFromResponse();
$api->setResponseParser('simplexml');
$response = $api->album('test')->upload(array('type' => 'image', 'uploadfile' => '123.jpg', 'title' => 'my upload'))->post()->getResponseString();
print_r($response);
} catch (PBAPI_Exception_Response $e) {
echo "RESPONSE $e";
} catch (PBAPI_Exception $e) {
echo "EX $e";
}
Thanks for sharing us such a nice information
ReplyDeleteWebsite development dubai : web development dubai