我想通过代理上传,但在设置代理值并连接后我收到此错误
致命错误:未捕获的异常' DailymotionApiException'消息'无效的API服务器响应'
上传只能在没有代理的情况下工作,而且我发现这个主题完全没有信息。
$api = new Dailymotion();
$proxy = $api->proxy = "159.89.100.181:1999";
$timeoutx = $api->timeout = 9000; //set higher for slow proxies.
$depdi = $api->debug = false;
$comnn = $api->connectionTimeout = 9000;
$api->setGrantType(Dailymotion::GRANT_TYPE_PASSWORD, $apikey, $apisecret, array('write','delete'), array('username' => $user, 'password' => $password));
$url = $api->uploadFile($videofile);
$result = $api->call('video.create', array('url' => $url, 'title' => $videotitle , 'channel' => $videocategory , 'tags' => $videotags, 'description' => $videodescription, 'published' => true));
$videourl = 'http://www.dailymotion.com/video/'.$result['id'];
我已经使用许多代理对此进行了测试,并且在成功连接到API后总是会出现相同的错误。任何人都可以告诉我,如果使用代理上传工作吗?