$client = new Google_Client(); $client->setApplicationName("Panel"); $client->setDeveloperKey("AIzaSyAaBecMN10zT1m6s8ax99Ufejpu-3Cmi3w"); $client->setClientId('648632130150-0hi4rgtrjrcs0eakn84cs0517eb23rdj.apps.googleusercontent.com'); $service = new Google_Service_Webmasters($client); $service->sitemaps->listSitemaps('fs.ovh');
i wyskakuje mi blad:
Warning: Missing argument 1 for Google_Client::authenticate(), called in /home/(...sciezka...)/_api.php on line 76 and defined in /home/(...sciezka...)/Google/Client.php on line 123
Fatal error: Uncaught exception 'Google_Auth_Exception' with message 'Invalid code' in /home/(...sciezka...)/Google/Auth/OAuth2.php:88 Stack trace: #0 /home/(...sciezka...)/Google/Client.php(126): Google_Auth_OAuth2->authenticate(NULL) #1 /home/(...sciezka...)/_api.php(76): Google_Client->authenticate() #2 {main} thrown in /home/(...sciezka...)/Google/Auth/OAuth2.php on line 88
Komunikat jasno wskazuje ze brak argumentu dla authenticate(), ale co tam umiescic ? Probowalem rozne rzeczy i zawsze dochodzilem do punktu wyjscia czyli tego, od 2 godzin juz to probuje rozkminic ...