Docusign RESTful client core

Docusign RESTful services core API

Лицензия

Лицензия

Категории

Категории

CLI Взаимодействие с пользователем
Группа

Группа

uk.co.techblue
Идентификатор

Идентификатор

docusign-restclient-core
Последняя версия

Последняя версия

2.0.4
Дата

Дата

Тип

Тип

jar
Описание

Описание

Docusign RESTful client core
Docusign RESTful services core API

Скачать docusign-restclient-core

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/uk.co.techblue/docusign-restclient-core/ -->
<dependency>
    <groupId>uk.co.techblue</groupId>
    <artifactId>docusign-restclient-core</artifactId>
    <version>2.0.4</version>
</dependency>
// https://jarcasting.com/artifacts/uk.co.techblue/docusign-restclient-core/
implementation 'uk.co.techblue:docusign-restclient-core:2.0.4'
// https://jarcasting.com/artifacts/uk.co.techblue/docusign-restclient-core/
implementation ("uk.co.techblue:docusign-restclient-core:2.0.4")
'uk.co.techblue:docusign-restclient-core:jar:2.0.4'
<dependency org="uk.co.techblue" name="docusign-restclient-core" rev="2.0.4">
  <artifact name="docusign-restclient-core" type="jar" />
</dependency>
@Grapes(
@Grab(group='uk.co.techblue', module='docusign-restclient-core', version='2.0.4')
)
libraryDependencies += "uk.co.techblue" % "docusign-restclient-core" % "2.0.4"
[uk.co.techblue/docusign-restclient-core "2.0.4"]

Зависимости

compile (5)

Идентификатор библиотеки Тип Версия
org.jboss.resteasy : resteasy-jaxrs jar 2.3.5.Final
org.jboss.resteasy : resteasy-jackson-provider jar 2.3.5.Final
org.jboss.resteasy : resteasy-multipart-provider jar 2.3.5.Final
uk.co.techblue : docusign-restclient-dto jar 2.0.4
org.apache.commons : commons-lang3 jar 3.1

Модули Проекта

Данный проект не имеет модулей.

Docusign RESTful Client

DocuSign is an electronic signature and document workflow automation service provider that facilitates end user to electronically sign, manage and verify documents.

This project provides a java rest client api which consumes docusign RESTful services. Demo services can be viewed/executed @ iodocs

##Maven Following declaration can be used to add this library as a maven dependency:

<dependency>
    <groupId>uk.co.techblue</groupId>
    <artifactId>docusign-restclient-core</artifactId>
    <version>2.0.4</version>
</dependency>

##Usage

###Please create a developer account:

  1. Create a developer account from here.
  2. Log into developer sandbox througn link on the same page.
  3. Request an integrator key.

Now you have all necessary elements (username, passoword and an integrator key) to call docusign rest services.

###Let us look at an example on how to upload document using RESTful client:

  • Initialize DocuSignCredentials using the aquired authentication data.
DocuSignCredentials credentials = new DocuSignCredentials("<Docusign Username>", "<Password>", "<Integrator Key>");
  • Each Service instantiation takes service endpoint URI and credentials as parameters. RequestSignature Service encapsulates all flavours of signature request rest methods. Initialize it with docusign demo rest services endpoint.
String serviceURI = "https://demo.docusign.net/restapi/v2";
RequestSignatureService signatureService = new RequestSignatureService(serviceURI, credentials);
  • Create Document signature request DTO by setting necessary signer info.
DocumentSignatureRequest signatureRequest = new DocumentSignatureRequest();
signatureRequest.setEmailBlurb("Ajay, Please sign the document.");// Email body custom text
signatureRequest.setEmailSubject("Please sign attached document");
signatureRequest.setStatus(Status.sent);
  • Create a recipient collection with signer details and set it into signature request.
RecipientCollection recipientCollection = new RecipientCollection();
Signer signer = new Signer();
signer.setRecipientId("1");
signer.setEmail("ajay.deshwal@techblue.co.uk");
signer.setName("Ajay");
List<Signer> signerList = new ArrayList<Signer>();
signerList.add(signer);
recipientCollection.setSigners(signerList);

signatureRequest.setRecipients(recipientCollection);
  • Create document list configured with necessary document info and set it into signature request DTO.
List<Document> documentList = new ArrayList<Document>();
Document document = new Document();
document.setName("test-signature.txt");
document.setDocumentId("1");
document.setPath("/home/ajay/Documents/test-signature.txt");
documentList.add(document);
signatureRequest.setDocuments(documentList);
  • Send the signature request.
SignatureResponse response = signatureService.sendDocument(signatureRequest);

Signature response, among other useful information, will contain newly created envelope Id and URI.

response.getEnvelopeId();
response.getUri();
uk.co.techblue

Версии библиотеки

Версия
2.0.4
2.0.3