I’m trying to write google appscirpt to get docusign signature using OAuth2 service for Authorization Code Grant flow, i have manually run the URL, but from the code i get the following error “Open the authorization URL to authorize”
When you manually run the URL do you get a prompt to authorize the app? This step is necessary for OAuth2. After authorization, this should not appear again. You will still need to refresh your token because they have a short expiration time.
It seems like you ran the appscript and it returned the error "Open the authorization URL to authorize." Since this type of error isn't returned by Docusign but I assume it was returned by Google's appscript, you can get the most accurate answer from Google.
As John mentioned, I also think you didn't grant consent and thus got this error. When you use an Authorization Code Grant, you should grant consent before obtaining the access token. Please refer to "Step 1. Request the authorization code" on this page for more information about granting consent: https://developers.docusign.com/platform/auth/authcode/authcode-get-token/
Reply
Sign up
Already have an account? Login
You can login or register as either a Docusign customer or developer. If you don’t already have a Docusign customer or developer account, you can create one for free when registering.
Customer Login/Registration Developer Login/RegistrationDocusign Community
You can login or register as either a Docusign customer or developer. If you don’t already have a Docusign customer or developer account, you can create one for free when registering.
Customer Login/Registration Developer Login/RegistrationEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.