This is an example Flask app to generate a usable Token to call the Sign API, upload a transient document, and create a web form.
In the app.py file, replace client_id and client_secret with the corresponding values from your API app on the Sign portal. Set the following scopes in the OAuth permissions: user_read agreement_write widget_write widget_read
Run the app:
python app.py
When you run the app, a local server is started. Visit the server at https://127.0.0.1:5000/, which will render the homepage.
Select the Login with Adobe Button button to launch the Adobe OAuth Portal, where you will be signing in with your Adobe Credentials. The access code returned from successfully logging in will then be exchanged for a token.
Upload a transient document and authenticate the upload with the token we just retrieved.
Call the widgets endpoint to get the userWidgetList. Use the Web Form ID from the previous step where we created the webform and locate the Web Form ID in the array of forms in userWidgetList. Retrieve the url of the widget object.
