Skip to content

Commit

Permalink
Merge pull request google#209 from google/google-api-script
Browse files Browse the repository at this point in the history
Add Script API explicitly
  • Loading branch information
campionfellin authored Jun 4, 2018
2 parents 9195e94 + 92359db commit d8a017d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { OAuth2Client } from 'google-auth-library';
import { google } from 'googleapis';
import { Drive } from 'googleapis/build/src/apis/drive/v3';
import { Logging } from 'googleapis/build/src/apis/logging/v2';
import { Script } from 'googleapis/build/src/apis/script/v1';
import { ClaspSettings, DOTFILE, ERROR, LOG, checkIfOnline } from './utils';
import open = require('open');
import readline = require('readline');
Expand Down Expand Up @@ -37,7 +38,7 @@ export const oauth2Client = new OAuth2Client(oauth2ClientSettings);
export const script = google.script({
version: 'v1',
auth: oauth2Client,
});
}) as Script;
export const logger = google.logging({
version: 'v2',
auth: oauth2Client,
Expand Down

0 comments on commit d8a017d

Please sign in to comment.