A Java SDK for simple integration with the Idfy REST API.
Is compatible with Java 8 and upwards.
The SDK will soon be available on Maven Central, and the JAR can also be downloaded directly from this repository.
###Installing from Maven Coming soon!
###Download the JAR Simply navigate to the Releases tab in this repository. Each release includes a JAR file which can be downloaded and added to your project directly.
The example below shows how to get the details of a specific document.
// Set your credentials and desired scopes
List myList = new LinkedList();
myList.add(OAuthScope.DocumentWrite);
myList.add(OAuthScope.DocumentRead);
myList.add(OAuthScope.DocumentFile);
IdfyConfiguration.setClientCredentials("Your account ID", "Your account secret", myList );
// Make a call to retrieve the document
SignatureService service = new SignatureService();
CreateDocumentResponse document = null;
try {
document = service.documentsGet(UUID.fromString("Your Document ID"));
} catch (Exception e) {
e.printStackTrace();
} catch (IdfyException e) {
e.printStackTrace();
}
System.out.println( document.toString() );- Open an issue to report bugs or submit feature requests.
- For other support requests, visit our support page or contact us at support@idfy.io.