Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The getRedirectUri() code sample in the README is invalid #384

Open
koconnor3 opened this issue Jul 22, 2022 · 1 comment
Open

The getRedirectUri() code sample in the README is invalid #384

koconnor3 opened this issue Jul 22, 2022 · 1 comment
Assignees

Comments

@koconnor3
Copy link

The getRedirectUri() code sample is invalid. getService() is not defined, and neither is OAuth2.getService()

/**
 * Logs the redirect URI to register.
 */
function logRedirectUri() {
  var service = getService();
  Logger.log(service.getRedirectUri());
}
@FFredericAL
Copy link

I had the same problem, I have done this instead to get the Uri :

function getUrl(){
  Logger.log(OAuth2.getRedirectUri());
}

In the code, I found getService_()but I had the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants