Skip to content

Commit

Permalink
automatic gapi.client.cloudtrace update @ Fri, 14 Aug 2020 12:20:39 GMT
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxim-Mazurok committed Aug 14, 2020
1 parent ff7d1bf commit 47de5cd
Show file tree
Hide file tree
Showing 5 changed files with 193 additions and 239 deletions.
11 changes: 5 additions & 6 deletions types/gapi.client.cloudtrace/gapi.client.cloudtrace-tests.ts
@@ -1,7 +1,7 @@
/* This is stub file for gapi.client.{{=it.name}} definition tests */
/* This is stub file for gapi.client.cloudtrace definition tests */
/* IMPORTANT.
* This file was automatically generated by https://github.com/Bolisov/google-api-typings-generator. Please do not edit it manually.
* In case of any problems please post issue to https://github.com/Bolisov/google-api-typings-generator
* This file was automatically generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
* In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
**/
gapi.load('client', () => {
/** now we can use gapi.client */
Expand All @@ -17,16 +17,15 @@ gapi.load('client', () => {
/** Write Trace data for a project or application */
'https://www.googleapis.com/auth/trace.append',
];
const immediate = true;
const immediate = false;
gapi.auth.authorize({ client_id, scope, immediate }, authResult => {
if (authResult && !authResult.error) {
/** handle succesfull authorization */
/** handle successful authorization */
run();
} else {
/** handle authorization error */
}
});
run();
});

async function run() {
Expand Down

0 comments on commit 47de5cd

Please sign in to comment.