Java client
The Java client can be found at https://github.com/lab5e/java-spanapi.
Usage
Installation
You’re free to use both Maven and Gradle
Maven
<dependency>
<groupId>com.lab5e</groupId>
<artifactId>span-java-client</artifactId>
<version>4.1.18</version>
<scope>compile</scope>
</dependency>
Gradle
compile "com.lab5e:span-java-client:4.1.18"
Example fetching collection data
import com.lab5e.ApiClient;
import com.lab5e.Configuration;
import com.lab5e.auth.*;
import com.lab5e.models.*;
import com.lab5e.span.CollectionsApi;
public class JavaExample {
public static void main(String[] args) {
ApiClient client = Configuration.getDefaultApiClient();
ApiKeyAuth APIToken = (ApiKeyAuth) client.getAuthentication("APIToken");
APIToken.setApiKey("myToken");
final CollectionsApi api = new CollectionsApi(client);
final ListDataResponse data = api.listCollectionData("myCollectionID");
System.out.println(data); // { data: [ ... ] }
}
}