MyMedicalRecords Sample Application
This is a sample application showcasing an integration between the DocuSign eSignature REST API and an Electronic Medical Records system. This application is open source and all of the code is located in our GitHub repository.
Login Code Flow
Note: Every user of this sample application is logged in using the same account to simplify hosting. However, if you are running this application locally, you must use your own developer account. Code flow:
See the source code for this flow.
If the user hasn't yet provided consent for the application to impersonate them, create the consent URI and have the user provide consent; then obtain the JWT token with the scopes that the application requires.
Using the JWT, obtain and store the access token that will be used to make future API calls.
Using the access token, use the /oauth/userinfo API endpoint to get and store the user's base URI and account ID, which are also needed to make API calls.