Skip to content

Commit 6c2ff35

Browse files
author
Eric Koleda
authored
Add sample code for logging redirect URI.
1 parent 1955286 commit 6c2ff35

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@ doesn't match the version the library uses. You can call the service's
4646
performing the OAuth flow. Register this version in addition to or in place of
4747
the version that uses the key shown in the dialog.
4848

49+
/**
50+
* Logs the redict URI to register in the Google Developers Console, etc.
51+
*/
52+
function logRedirectUri() {
53+
var service = getService();
54+
Logger.log(service.getRedirectUri());
55+
}
56+
4957
## Usage
5058

5159
Using the library to generate an OAuth2 token has the following basic steps.

0 commit comments

Comments
 (0)