init

fun init(context: Context, integratorKey: String?, mode: DSMode = DSMode.DEBUG): DocuSign

Initializes DocuSign with the Integrator key. Returns a DocuSign object. Call this from your Application class onCreate().

Return

DocuSign object

Parameters

context

Context of the client application.

integratorKey

the integrator key obtained from https://go.docusign.com/o/sandbox/. More on how to obtain the Integrator Key here https://github.docusignhq.com/Android/Android_SDK#steps-to-obtain-an-integrator-key

mode

the configuration used for Logging. To know more about logging options see DSMMode.


fun init(context: Context, integratorKey: String?, clientSecret: String? = null, redirectUri: String? = null, mode: DSMode = DSMode.DEBUG): DocuSign

Initializes DocuSign with the Integrator key. Returns a DocuSign object. Call this from your Application class onCreate().

Return

DocuSign object

Parameters

context

Context of the client application.

integratorKey

the integrator key or client Id obtained from https://go.docusign.com/o/sandbox/. More on how to obtain the Integrator Key here https://github.docusignhq.com/Android/Android_SDK#steps-to-obtain-an-integrator-key

clientSecret

the oAuth client secret key

redirectUri

the URI where the client will get send to after the account authorization is successful

mode

the configuration used for Logging. To know more about logging options see DSMode.