API documentation is available at https://docs.seam.co/latest/api-clients/overview.
Add the dependency in your build.gradle:
dependencies {
implementation 'io.github.fern-api:seam:0.x.x'
}Add the dependency in your pom.xml:
<dependency>
<groupId>io.github.fern-api</groupId>
<artifactId>seam</artifactId>
<version>0.x.x</version>
</dependency>Check out the sample app which consumes this SDK!
SeamApiClient seam = SeamApiClient.builder()
.token("MY_API_KEY")
.build();
AccessCodesCreateResponse accessCodesCreateResponse =
seam.accessCodes().create(AccessCodesCreateRequest.builder()
.deviceId("123e4567-e89b-12d3-a456-426614174000")
.commonCodeKey("My first code")
.build());
System.out.println(accessCodesCreateResponse.getAccessCode());The SDK has convenience methods to poll until access code updates have successfully finished.
Object accessCode = seam.accessCodes().updateAndWaitUntilReady(AccessCodesUpdatePutRequest.builder()
.accessCodeId("my-access-code-id")
.name("access-code-name")
.code("access-code")
.build());
System.out.println(accessCode);This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning the package version to a specific version in your build.gradle file. This way, you can install the same version each time without breaking changes unless you are intentionally looking for the latest version.
While we value open-source contributions to this SDK, this library is generated programmatically. Additions made directly to this library would have to be moved over to our generation code, otherwise they would be overwritten upon the next generated release. Feel free to open a PR as a proof of concept, but know that we will not be able to merge it as-is. We suggest opening an issue first to discuss with us!
On the other hand, contributions to the README are always very welcome!