The Official DocuSign Objective-C Client
You can sign up for a free developer sandbox.
Requirements
Xcode 7 or later.
Installation
CocoaPods Install
Create a podfile, run pod install, then use the .xcworkspace
project file moving forward. To use the clients in this manner, do the following:
-
At the command line run the following RubyGems command to install cocoapods (note: this might require sudo):
$ gem install cocoapods
-
Create a file in your root project directory called
Podfile
with the following content. Replace the two references to PROJECT below with your unique project name:
pod 'DocuSignESign', '~> 4.0.0'
- Run the following command in the same directory as your Podfile:
$ pod install
Once you are done installing, close Xcode and open the newly created .xcworkspace
project file. Make sure you use this work space going forward!
Manual Install
Copy the source files directly into your existing project’s source directories and add corresponding import statements.
Dependencies
- AFNetworking ~> 4
- JSONModel ~> 1.4
- ISO8601 ~> 0.6
- JWT ~> 3.0.0-beta.10
Authentication
User Applications that use OAuth Authentication
- After obtaining a Bearer token, call the OAuth: Userinfo method. Obtain the selected account's
base_uri
(server name) field. The url for the Userinfo method is account-d.docusign.com for the demo/developer environment, and account.docusign.com for the production environment. - Combine the base_uri with "/restapi" to create the basePath. The base_uri will start with na1, na2, na3, eu1, or something else. Use the basePath for your subsequent API calls.
- Instantiate the SDK using the basePath. Eg
ApiClient apiClient = new ApiClient(basePath);
- Create the
authentication_value
by combining thetoken_type
andaccess_token
fields you receive from either an Authorization Code Grant or Implicit Grant OAuth flow. - Set the authentication header by using
Configuration.Default.AddDefaultHeader('Authorization', authentication_value)
Testing
Unit tests are available here.
Support
Feel free to log issues against this client through GitHub. We also have an active developer community on Stack Overflow, search the DocuSignAPI tag.
License
The DocuSign Objc Client is licensed under the following License.