GET https://content.googleapis.com/discovery/v1/apis/drive/v3/rest?pp=0&fields=kind%2Cname%2Cversion%2CrootUrl%2CservicePath%2Cresources%2Cparameters%2Cmethods%2CbatchPath%2Cid&key=581000403558-9bno5mqs81fu452qearbqjkrl24jrqln.apps.googleusercontent.com 502 (Bad Gateway)
$h @ cb=gapi.loaded_0?le=scs:169
h @ cb=gapi.loaded_0?le=scs:169
ai @ cb=gapi.loaded_0?le=scs:170
(anonymous) @ cb=gapi.loaded_0?le=scs:170
d @ cb=gapi.loaded_0?le=scs:128
b @ cb=gapi.loaded_0?le=scs:124
trumbowyg.clouddrive.google.min.js:45 gAPI initialization failed with following error: gapix.client.GapiClientError: API discovery response missing required fields.
< /code>
Код, который я использую для инициализации Gapi: < /p>
window.WaXCode.gAPI.onload = () => {
console.log('gAPI Loaded.');
// #region Check for API Key.
try { var apiKey = jQuery.trumbowyg.XC.CloudStorage.Browser.refTrumbowyg.o.plugins.WaXCode_OnlineStorage_Google.clientID ;}
catch( X ) {
console.error('Google / Drive - API Key not available (is the "Google / Drive (cx_editor)" - TypoScript included in your template?). Unable to initialize Google Drive. Internal: ');
throw X ;}
// #endregion Check for API Key.
// #region Load gAPI.
gapi.load('client', async () => {
try {
await gapi.client.init({
apiKey : apiKey,
discoveryDocs : ['https://www.googleapis.com/discovery/v1/apis/drive/v3/rest']});
gAPI_Initialized = true ;}
catch( X ) { console.log('gAPI initialization failed with following error: ' + X );}
// #endregion Load gAPI.
});}
Google Cloud Console Покажите, что все в порядке с Api-кей и т. Д.
Не могу понять, в чем проблема.
>
У меня была работающая реализация API Google Drive.[code]GET https://content.googleapis.com/discovery/v1/apis/drive/v3/rest?pp=0&fields=kind%2Cname%2Cversion%2CrootUrl%2CservicePath%2Cresources%2Cparameters%2Cmethods%2CbatchPath%2Cid&key=581000403558-9bno5mqs81fu452qearbqjkrl24jrqln.apps.googleusercontent.com 502 (Bad Gateway) $h @ cb=gapi.loaded_0?le=scs:169 h @ cb=gapi.loaded_0?le=scs:169 ai @ cb=gapi.loaded_0?le=scs:170 (anonymous) @ cb=gapi.loaded_0?le=scs:170 d @ cb=gapi.loaded_0?le=scs:128 b @ cb=gapi.loaded_0?le=scs:124 trumbowyg.clouddrive.google.min.js:45 gAPI initialization failed with following error: gapix.client.GapiClientError: API discovery response missing required fields. < /code> Код, который я использую для инициализации Gapi: < /p>
window.WaXCode.gAPI.onload = () => { console.log('gAPI Loaded.'); // #region Check for API Key. try { var apiKey = jQuery.trumbowyg.XC.CloudStorage.Browser.refTrumbowyg.o.plugins.WaXCode_OnlineStorage_Google.clientID ;} catch( X ) { console.error('Google / Drive - API Key not available (is the "Google / Drive (cx_editor)" - TypoScript included in your template?). Unable to initialize Google Drive. Internal: ');
throw X ;} // #endregion Check for API Key. // #region Load gAPI. gapi.load('client', async () => { try { await gapi.client.init({ apiKey : apiKey, discoveryDocs : ['https://www.googleapis.com/discovery/v1/apis/drive/v3/rest']});
gAPI_Initialized = true ;} catch( X ) { console.log('gAPI initialization failed with following error: ' + X );} // #endregion Load gAPI. });}[/code]
Google Cloud Console Покажите, что все в порядке с Api-кей и т. Д. Не могу понять, в чем проблема. >
Я пытаюсь обновить звездное значение папки Google Drive, используя API Google Drive, но он не отражается в Google Drive. не обновляется. Здесь есть старый случай на Stackoverflow, утверждая, что это займет очень много времени, но я ждал более 15...
Я разрабатываю приложение, которое необходимо взаимодействовать с Google Drive так же, как Google Drive для настольных компьютеров. В частности, мне нужно создавать и управлять компьютерными папками, которые появляются в разделе «Компьютеры» Google...
Я разрабатываю приложение, которое необходимо взаимодействовать с Google Drive так же, как Google Drive для настольных компьютеров. В частности, мне нужно создавать и управлять компьютерными папками, которые появляются в разделе «Компьютеры» Google...
Я разрабатываю приложение, которое необходимо взаимодействовать с Google Drive так же, как Google Drive для настольных компьютеров. В частности, мне нужно создавать и управлять компьютерными папками, которые появляются в разделе «Компьютеры» Google...