Java
Install
Add the Signplus Java SDK package to your project
<dependencies>
<!-- Other dependencies -->
<!-- Add the dependency for alohi.signplus.signplus -->
<dependency>
<groupId>com.alohi</groupId>
<artifactId>signplus</artifactId>
<version>2.0.0</version> <!-- Use the specific version you need -->
</dependency>
</dependencies>
Save the pom.xml file and run the following command to install the dependencies:
mvn install
Call your first SDK method
import com.alohi.signplus.Signplus;
import com.alohi.signplus.config.SignplusConfig;
import com.alohi.signplus.models.CreateEnvelopeRequest;
import com.alohi.signplus.models.Envelope;
import com.alohi.signplus.models.EnvelopeFlowType;
import com.alohi.signplus.models.EnvelopeLegalityLevel;
public class Main {
public static void main(String[] args) {
SignplusConfig config = SignplusConfig.builder().accessToken("YOUR_ACCESS_TOKEN").build();
Signplus signplus = new Signplus(config);
CreateEnvelopeRequest createEnvelopeRequest = CreateEnvelopeRequest
.builder()
.name("name")
.flowType(EnvelopeFlowType.REQUEST_SIGNATURE)
.legalityLevel(EnvelopeLegalityLevel.SES)
.expiresAt(8L)
.comment("comment")
.sandbox(false)
.build();
Envelope response = signplus.signplusService.createEnvelope(createEnvelopeRequest);
System.out.println(response);
}
}
SDK Reference
Check out the SDK reference to see all the available methods and options