//Check for an error and die if it finds one.
if (!empty($this->parsed_response['ut_response']['error']) && $this->die_on_error) {
die("Sorry this video has been deleted");
} elseif (!empty($this->parsed_response['ut_response']['error'])) {
$this->error_code = $this->parsed_response['ut_response']['error']['code'];
$this->error_msg = "The Youtube API returned error code #" . $this->parsed_response['ut_response']['error']['code'] . ": " . $this->parsed_response['ut_response']['error']['description'];
return false;
} else {
$this->error_code = false;
$this->error_msg = false;
}
return $this->parsed_response['ut_response'];
}
function setService($service)
{
// Sets which service to connect to. Currently supported service is
// "youtube"
if (strtolower($service) == "youtube") {
$this->service = "youtube";
$this->REST = 'http://www.youtube.com/api2_rest';
} else {
die ("You have entered a service that does not exist or is not supported at this time.");
}
}
function setProxy($server, $port)
{
// Sets the proxy for all phpYoutube calls.
$this->req->setProxy($server, $port);
}
function useSAXY($useIt = true) {
$this->xml_parser->useSAXY($useIt);
}
function getErrorCode()
{
// Returns the error code of the last call. If the last call did not
// return an error. This will return a false boolean.
return $this->error_code;
}
function getErrorMsg()
{
// Returns the error message of the last call. If the last call did not
// return an error. This will return a false boolean.
return $this->error_msg;
}php youtube botlu bir video scripti kurulu sitede. siteye girince"Sorry this video has been deleted" hatasını veriyor. neden olabilir acaba
ücretli veya ücretsiz yardım edebileceksen msn i pm le