How to make a direct API call
This topic demonstrates how you can make a direct API call to the eSignature REST API from the Docusign iOS SDK module if there is no existing SDK method; in this case, to retrieve a user’s signature ID.
Required data
Running the code in this how-to requires this data:
Step 1. Log in to Docusign
To make the API calls shown in this how-to, you must be logged in to Docusign.
See How to log in to Docusign from your app for details.
Step 2. Construct your API headers
Use the DSMAccountInfo object that is returned from the log in function in the previous step to retrieve the account information needed to initialize the API client and set API headers.
Step 3. Call the eSignature REST API to get the user signature ID
Next, use the account information you retrieved in step 2 to make the API call via the userSignaturesGetUserSignature method.
Expected response
You should receive your user’s signature ID.