seam logo

New Seam Java SDK

2023-10-13

This week we are excited to the beta launch of our Java SDK. You can now use Seam inside your Java applications. You can browse the entire SDK repo here.

Why Release a Java SDKs? ☕

At Seam, we aim to provide the best developer experience to control IoT devices. Part of that effort consists of producing great SDKs that make Seam even easier to use, and IoT devices even simpler to control. We design these SDKs to match the programming environment in which Seam is being used. We also strongly encourage developers to use the Seam SDK in their preferred language versus using the Seam HTTP API directly.

Many Java developers already use Seam to control IoT devices. Unfortunately, until today, we did not have a proper Java SDK for them. We are now trying to make up for this grave injavastice 😊

Getting Started with the Seam Java SDK

You can use either Gradle or Maven to pull in the Seam Java SDK into your project. As with other Seam SDK, you then just need to provide your API key to begin using it, such as in the example below.

1SeamApiClient seam = SeamApiClient.builder()
2        .token("MY_API_KEY")
3        .build();
4AccessCodesCreateResponse accessCodesCreateResponse =
5        seam.accessCodes().create(AccessCodesCreateRequest.builder()
6            .deviceId("123e4567-e89b-12d3-a456-426614174000")
7            .commonCodeKey("My first code")
8            .build());
9System.out.println(accessCodesCreateResponse.getAccessCode());

This Java SDK is still in beta but we will be rapidly iterating toward a stable version. If you find issues, please leave us a note at support@getseam.com.