File tree 2 files changed +2
-3
lines changed
2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -63,9 +63,6 @@ service for the Google Drive API.
63
63
.setClientId('...')
64
64
.setClientSecret('...')
65
65
66
- // Set the project key of the script using this library.
67
- .setProjectKey('...')
68
-
69
66
// Set the name of the callback function in the script referenced
70
67
// above that should be invoked to complete the OAuth flow.
71
68
.setCallbackFunction('authCallback')
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ var Service_ = function(serviceName) {
29
29
this . params_ = { } ;
30
30
this . tokenFormat_ = TOKEN_FORMAT . JSON ;
31
31
this . tokenHeaders_ = null ;
32
+ this . projectKey_ = ScriptApp . getProjectKey ( ) ;
32
33
} ;
33
34
34
35
/**
@@ -86,6 +87,7 @@ Service_.prototype.setTokenHeaders = function(tokenHeaders) {
86
87
* The project key can be found in the Script Editor UI under "File > Project properties".
87
88
* @param {string } projectKey The project key of the project containing the callback function.
88
89
* @return {Service_ } This service, for chaining.
90
+ * @deprecated The project key is now be determined automatically.
89
91
*/
90
92
Service_ . prototype . setProjectKey = function ( projectKey ) {
91
93
this . projectKey_ = projectKey ;
You can’t perform that action at this time.
0 commit comments