Skip to content

Fluent interface

Compare
Choose a tag to compare
@ctmay4 ctmay4 released this 19 May 22:22
· 320 commits to master since this release

The initialization of a SeerApi object is now accomplished with a SeerApiBuilder.

To use the default URL and key stored in a local properties file:

SeerApi api = new SeerApiBuilder().connect();
StagingSchema schema = api.stagingSchemaById("cs", "02.05.50", "brain");

Or the URL and key can be specified:

SeerApi api = new SeerApiBuilder().url("api_url")
                                  .apiKey("your_api_key")
                                  .connect();
StagingSchema schema = api.stagingSchemaById("cs", "02.05.50", "brain");