• 10-04-2008, 21:58:15
    #1
     //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
  • 10-04-2008, 22:50:45
    #2
    Üyeliği durduruldu
    apini falan düzgün girdin mi jonturk

    kodların tamamını bilmiyorum ama
    $this->REST = 'http://www.youtube.com/api2_rest';

    burda ki adreste zaten api hatası veriyor. Parametre eksik diyor...
  • 10-04-2008, 22:52:25
    #3
    dün akşama kadar sorun yoktu. bugün çalışmıyor. açıkcası php bilgim 0 ücretli veya ücretsiz yardım edebileceksen msn i pm le
  • 10-04-2008, 23:11:58
    #4
    Üyeliği durduruldu
    Legacy API not working again - YouTube APIs and Tools Discussion | Google Groups

    YouTube internal error (again) - Legacy API Discussion | Google Groups


    Youtube apide problem varmış jonturk senle alakası yok...

    Hi all, it seems that we ´ve the same problem again when we call
    list_by_tag, for example:

    tag a göre çekiyor galiba apiden senin botda...
  • 10-04-2008, 23:14:07
    #5
    evet genel bir sorun varmış. tşkler yinede