Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Sign API OAuth Example App

Overview

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.

Screen Recording 2025-01-29 at 8 44 29 PM_5 (1)

Usage

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

App overview

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.

Screenshot 2025-01-29 at 9 44 34 PM

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.

Screenshot 2025-01-29 at 9 48 04 PM

Upload a transient document and authenticate the upload with the token we just retrieved.

Screenshot 2025-01-29 at 9 48 27 PM Screenshot 2025-01-29 at 9 48 35 PM

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.

Screenshot 2025-01-29 at 9 48 56 PM

References

About

An example Flask App to use the Sign API.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages