Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ apply plugin: 'java'
apply plugin: 'com.diffplug.spotless'

group 'io.tiledb'
version = '0.3.1-SNAPSHOT'
version = '0.3.2-SNAPSHOT'

repositories {
mavenCentral()
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/examples/Examples.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

public class Examples
{
public static void main(String[] args) {
public static void main(String[] args) throws ApiException {

// if using cloud for the first time create the client with a Login object to pass your credentials.
TileDBClient tileDBClient = new TileDBClient(
Expand All @@ -27,7 +27,8 @@ public static void main(String[] args) {
System.getenv("API_TOKEN"),
true,
true,
true));
true,
"https://api.tiledb.com"));

// If the "RememberME" option is set to true in your first login you can access TileDB-Cloud without the need
// to pass any credentials from now on. Just create the client as follows:
Expand Down
6 changes: 2 additions & 4 deletions src/main/java/io/tiledb/cloud/TileDBLogin.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,13 @@ public TileDBLogin(String username, String password, String apiKey, boolean veri
*/
public TileDBLogin(String username, String password, String apiKey, boolean verifySSL,
boolean rememberMe, boolean overwritePrevious, String host) throws ApiException {
if (host.equals("https://api.tiledb.com/v2")){
throw new ApiException("https://api.tiledb.com/v2 is not yet supported");
}

this.password = password;
this.username = username;
this.apiKey = apiKey;
this.verifySSL = verifySSL;
this.rememberMe = rememberMe;
this.host = host;
this.host = host + "/v1";
this.overwritePrevious = overwritePrevious;
}

Expand Down