File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 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.
6363 .setClientId('...')
6464 .setClientSecret('...')
6565
66- // Set the project key of the script using this library.
67- .setProjectKey('...')
68-
6966 // Set the name of the callback function in the script referenced
7067 // above that should be invoked to complete the OAuth flow.
7168 .setCallbackFunction('authCallback')
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ var Service_ = function(serviceName) {
2929 this . params_ = { } ;
3030 this . tokenFormat_ = TOKEN_FORMAT . JSON ;
3131 this . tokenHeaders_ = null ;
32+ this . projectKey_ = ScriptApp . getProjectKey ( ) ;
3233} ;
3334
3435/**
@@ -86,6 +87,7 @@ Service_.prototype.setTokenHeaders = function(tokenHeaders) {
8687 * The project key can be found in the Script Editor UI under "File > Project properties".
8788 * @param {string } projectKey The project key of the project containing the callback function.
8889 * @return {Service_ } This service, for chaining.
90+ * @deprecated The project key is now be determined automatically.
8991 */
9092Service_ . prototype . setProjectKey = function ( projectKey ) {
9193 this . projectKey_ = projectKey ;
You can’t perform that action at this time.
0 commit comments