Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
  • 4 commits
  • 11 files changed
  • 0 commit comments
  • 2 contributors
View
30 client/src/main/java/io/iron/ironworker/client/APIClient.java
@@ -24,9 +24,8 @@
import java.io.*;
import java.net.URI;
import java.net.URISyntaxException;
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Map;
+import java.text.SimpleDateFormat;
+import java.util.*;
public class APIClient {
public static final String AWS_US_EAST_HOST = "worker-aws-us-east-1.iron.io";
@@ -40,6 +39,8 @@
private String userAgent;
private int maxRetries;
+ private Gson gson;
+
public APIClient(String token, String projectId) {
this.token = token;
this.projectId = projectId;
@@ -49,6 +50,8 @@ public APIClient(String token, String projectId) {
this.apiVersion = 2;
this.userAgent = "iron_worker_java-1.0.0";
maxRetries = 5;
+
+ gson = new Gson();
}
public String getToken() {
@@ -288,7 +291,7 @@ public JsonObject codesCreate(String name, String file, String runtime, String r
throw new APIException("File " + file + " not found", null);
}
- String data = (new Gson()).toJson(Params.create("name", name, "runtime", runtime, "file_name", runner));
+ String data = gson.toJson(Params.create("name", name, "runtime", runtime, "file_name", runner));
return parseResponseAsJson(doFileRequest(String.format("projects/%s/codes", projectId), data, f));
}
@@ -324,7 +327,7 @@ public JsonObject tasksCreate(String code_name, String payload, Map<String, Obje
tasks.add(task);
- return parseResponseAsJson(doPostRequest(String.format("projects/%s/tasks", projectId), (new Gson()).toJson(Params.create("tasks", tasks))));
+ return parseResponseAsJson(doPostRequest(String.format("projects/%s/tasks", projectId), gson.toJson(Params.create("tasks", tasks))));
}
public JsonObject tasksCancel(String id) throws APIException {
@@ -340,7 +343,7 @@ public String tasksLog(String id) throws APIException {
}
public JsonObject tasksSetProgress(String id, Map<String, Object> options) throws APIException {
- return parseResponseAsJson(doPostRequest(String.format("projects/%s/tasks/%s/progress", projectId, id), (new Gson()).toJson(options)));
+ return parseResponseAsJson(doPostRequest(String.format("projects/%s/tasks/%s/progress", projectId, id), gson.toJson(options)));
}
public JsonObject schedulesList(Map<String, Object> options) throws APIException {
@@ -355,6 +358,19 @@ public JsonObject schedulesCreate(String code_name, String payload, Map<String,
Map<String, Object> schedule = Params.create("code_name", code_name, "payload", payload);
if (options != null) {
+ SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");
+ format.setTimeZone(TimeZone.getTimeZone("UTC"));
+
+ if (options.containsKey("start_at") && options.get("start_at").getClass() == Date.class) {
+ Date d = (Date) options.get("start_at");
+ options.put("start_at", format.format(d));
+ }
+
+ if (options.containsKey("end_at") && options.get("end_at").getClass() == Date.class) {
+ Date d = (Date) options.get("end_at");
+ options.put("end_at", format.format(d));
+ }
+
schedule.putAll(options);
}
@@ -362,7 +378,7 @@ public JsonObject schedulesCreate(String code_name, String payload, Map<String,
schedules.add(schedule);
- return parseResponseAsJson(doPostRequest(String.format("projects/%s/schedules", projectId), (new Gson()).toJson(Params.create("schedules", schedules))));
+ return parseResponseAsJson(doPostRequest(String.format("projects/%s/schedules", projectId), gson.toJson(Params.create("schedules", schedules))));
}
public JsonObject schedulesCancel(String id) throws APIException {
View
107 client/src/main/java/io/iron/ironworker/client/Client.java
@@ -7,7 +7,7 @@
import io.iron.ironworker.client.codes.BaseCode;
import io.iron.ironworker.client.entities.CodeEntity;
import io.iron.ironworker.client.entities.CodeRevisionEntity;
-import io.iron.ironworker.client.entities.Codes;
+import io.iron.ironworker.client.entities.ScheduleEntity;
import io.iron.ironworker.client.entities.TaskEntity;
import java.util.ArrayList;
@@ -17,32 +17,40 @@
public class Client {
private APIClient api;
-
+ private Gson gson;
+
public Client(String token, String projectId) {
api = new APIClient(token, projectId);
+ gson = new Gson();
}
public APIClient getAPI() {
return api;
}
-
- public Codes getCodes(Map<String, Object> options) throws APIException {
+
+ public List<CodeEntity> getCodes(Map<String, Object> options) throws APIException {
JsonObject codes = api.codesList(options);
- return new Gson().fromJson(codes, Codes.class);
+ List<CodeEntity> codesList = new ArrayList<CodeEntity>();
+
+ for (JsonElement code : codes.get("codes").getAsJsonArray()) {
+ codesList.add(gson.fromJson(code, CodeEntity.class));
+ }
+
+ return codesList;
}
- public Codes getCodes(PaginationOptionsObject options) throws APIException {
+ public List<CodeEntity> getCodes(PaginationOptionsObject options) throws APIException {
return getCodes(options.create());
}
- public Codes getCodes() throws APIException {
+ public List<CodeEntity> getCodes() throws APIException {
return getCodes((Map<String, Object>) null);
}
public CodeEntity getCode(String codeId) throws APIException {
- return CodeEntity.fromJsonObject(api.codesGet(codeId));
+ return gson.fromJson(api.codesGet(codeId), CodeEntity.class);
}
-
+
public void createCode(BaseCode code) throws APIException {
api.codesCreate(code.getName(), code.getFile(), code.getRuntime(), code.getRunner());
}
@@ -57,7 +65,7 @@ public void deleteCode(String codeId) throws APIException {
List<CodeRevisionEntity> codeRevisionsList = new ArrayList<CodeRevisionEntity>();
for (JsonElement codeRevision : codeRevisions.get("revisions").getAsJsonArray()) {
- codeRevisionsList.add(CodeRevisionEntity.fromJsonObject(codeRevision.getAsJsonObject()));
+ codeRevisionsList.add(gson.fromJson(codeRevision, CodeRevisionEntity.class));
}
return codeRevisionsList;
@@ -89,7 +97,7 @@ public void deleteCode(String codeId) throws APIException {
List<TaskEntity> tasksList = new ArrayList<TaskEntity>();
for (JsonElement task : tasks.get("tasks").getAsJsonArray()) {
- tasksList.add(TaskEntity.fromJsonObject(task.getAsJsonObject()));
+ tasksList.add(gson.fromJson(task, TaskEntity.class));
}
return tasksList;
@@ -104,18 +112,18 @@ public void deleteCode(String codeId) throws APIException {
}
public TaskEntity getTask(String taskId) throws APIException {
- return TaskEntity.fromJsonObject(api.tasksGet(taskId));
+ return gson.fromJson(api.tasksGet(taskId), TaskEntity.class);
}
-
+
public TaskEntity createTask(String codeName, Map<String, Object> params, Map<String, Object> options) throws APIException {
if (params == null) {
params = new HashMap<String, Object>();
}
- JsonObject tasks = api.tasksCreate(codeName, (new Gson()).toJson(Params.create("token", api.getToken(), "project_id", api.getProjectId(), "params", params)), options);
+ JsonObject tasks = api.tasksCreate(codeName, gson.toJson(Params.create("token", api.getToken(), "project_id", api.getProjectId(), "params", params)), options);
JsonObject task = tasks.get("tasks").getAsJsonArray().get(0).getAsJsonObject();
- return TaskEntity.fromJsonObject(task);
+ return gson.fromJson(task, TaskEntity.class);
}
public TaskEntity createTask(String codeName, Map<String, Object> params, TaskOptionsObject options) throws APIException {
@@ -141,7 +149,7 @@ public TaskEntity createTask(String codeName, ParamsObject params) throws APIExc
public TaskEntity createTask(String codeName) throws APIException {
return createTask(codeName, (Map<String, Object>) null, (Map<String, Object>) null);
}
-
+
public void cancelTask(String taskId) throws APIException {
api.tasksCancel(taskId);
}
@@ -149,11 +157,11 @@ public void cancelTask(String taskId) throws APIException {
public void cancelAllTasks(String codeId) throws APIException {
api.tasksCancelAll(codeId);
}
-
+
public String getTaskLog(String taskId) throws APIException {
return api.tasksLog(taskId);
}
-
+
public void setTaskProgress(String taskId, Map<String, Object> options) throws APIException {
api.tasksSetProgress(taskId, options);
}
@@ -165,4 +173,67 @@ public void setTaskProgress(String taskId, TaskProgressOptionsObject options) th
public void setTaskProgress(String taskId) throws APIException {
setTaskProgress(taskId, (Map<String, Object>) null);
}
+
+ public List<ScheduleEntity> getSchedules(Map<String, Object> options) throws APIException {
+ JsonObject schedules = api.schedulesList(options);
+
+ List<ScheduleEntity> schedulesList = new ArrayList<ScheduleEntity>();
+
+ for (JsonElement schedule : schedules.get("schedules").getAsJsonArray()) {
+ schedulesList.add(gson.fromJson(schedule, ScheduleEntity.class));
+ }
+
+ return schedulesList;
+ }
+
+ public List<ScheduleEntity> getSchedules(PaginationOptionsObject options) throws APIException {
+ return getSchedules(options.create());
+ }
+
+ public List<ScheduleEntity> getSchedules() throws APIException {
+ return getSchedules((Map<String, Object>) null);
+ }
+
+ public ScheduleEntity getSchedule(String scheduleId) throws APIException {
+ return gson.fromJson(api.schedulesGet(scheduleId), ScheduleEntity.class);
+ }
+
+ public ScheduleEntity createSchedule(String codeName, Map<String, Object> params, Map<String, Object> options) throws APIException {
+ if (params == null) {
+ params = new HashMap<String, Object>();
+ }
+
+ JsonObject schedules = api.schedulesCreate(codeName, gson.toJson(Params.create("token", api.getToken(), "project_id", api.getProjectId(), "params", params)), options);
+ JsonObject schedule = schedules.get("schedules").getAsJsonArray().get(0).getAsJsonObject();
+
+ return gson.fromJson(schedule, ScheduleEntity.class);
+ }
+
+ public ScheduleEntity createSchedule(String codeName, Map<String, Object> params, ScheduleOptionsObject options) throws APIException {
+ return createSchedule(codeName, params, options.create());
+ }
+
+ public ScheduleEntity createSchedule(String codeName, ParamsObject params, Map<String, Object> options) throws APIException {
+ return createSchedule(codeName, params.create(), options);
+ }
+
+ public ScheduleEntity createSchedule(String codeName, ParamsObject params, ScheduleOptionsObject options) throws APIException {
+ return createSchedule(codeName, params.create(), options.create());
+ }
+
+ public ScheduleEntity createSchedule(String codeName, Map<String, Object> params) throws APIException {
+ return createSchedule(codeName, params, (Map<String, Object>) null);
+ }
+
+ public ScheduleEntity createSchedule(String codeName, ParamsObject params) throws APIException {
+ return createSchedule(codeName, params.create(), (Map<String, Object>) null);
+ }
+
+ public ScheduleEntity createSchedule(String codeName) throws APIException {
+ return createSchedule(codeName, (Map<String, Object>) null, (Map<String, Object>) null);
+ }
+
+ public void cancelSchedule(String scheduleId) throws APIException {
+ api.schedulesCancel(scheduleId);
+ }
}
View
32 client/src/main/java/io/iron/ironworker/client/builders/ScheduleOptions.java
@@ -0,0 +1,32 @@
+package io.iron.ironworker.client.builders;
+
+import java.util.Date;
+
+public class ScheduleOptions {
+ public static ScheduleOptionsObject priority(int priority) {
+ return (new ScheduleOptionsObject()).priority(priority);
+ }
+
+ public static ScheduleOptionsObject startAt(Date startAt) {
+ return (new ScheduleOptionsObject()).startAt(startAt);
+ }
+
+ public static ScheduleOptionsObject endAt(Date endAt) {
+ return (new ScheduleOptionsObject()).endAt(endAt);
+ }
+
+ public static ScheduleOptionsObject delay(int delay) {
+ return (new ScheduleOptionsObject()).delay(delay);
+ }
+
+ public static ScheduleOptionsObject runEvery(int runEvery) {
+ return (new ScheduleOptionsObject()).runEvery(runEvery);
+ }
+
+ public static ScheduleOptionsObject runTimes(int runTimes) {
+ return (new ScheduleOptionsObject()).runTimes(runTimes);
+ }
+
+ protected ScheduleOptions() {
+ }
+}
View
53 client/src/main/java/io/iron/ironworker/client/builders/ScheduleOptionsObject.java
@@ -0,0 +1,53 @@
+package io.iron.ironworker.client.builders;
+
+import java.util.Date;
+import java.util.HashMap;
+import java.util.Map;
+
+public class ScheduleOptionsObject {
+ private Map<String, Object> options;
+
+ public ScheduleOptionsObject() {
+ options = new HashMap<String, Object>();
+ }
+
+ public ScheduleOptionsObject priority(int priority) {
+ options.put("priority", priority);
+
+ return this;
+ }
+
+ public ScheduleOptionsObject startAt(Date startAt) {
+ options.put("start_at", startAt);
+
+ return this;
+ }
+
+ public ScheduleOptionsObject endAt(Date endAt) {
+ options.put("end_at", endAt);
+
+ return this;
+ }
+
+ public ScheduleOptionsObject delay(int delay) {
+ options.put("delay", delay);
+
+ return this;
+ }
+
+ public ScheduleOptionsObject runEvery(int runEvery) {
+ options.put("run_every", runEvery);
+
+ return this;
+ }
+
+ public ScheduleOptionsObject runTimes(int runTimes) {
+ options.put("run_times", runTimes);
+
+ return this;
+ }
+
+ public Map<String, Object> create() {
+ return options;
+ }
+}
View
35 client/src/main/java/io/iron/ironworker/client/entities/BaseEntity.java
@@ -1,35 +0,0 @@
-package io.iron.ironworker.client.entities;
-
-import com.google.gson.JsonObject;
-import org.joda.time.format.ISODateTimeFormat;
-
-import java.util.Date;
-
-public class BaseEntity {
- public static String parseString(JsonObject o, String field, String def) {
- return o.has(field) ? o.get(field).getAsString() : def;
- }
-
- public static String parseString(JsonObject o, String field) {
- return parseString(o, field, null);
- }
-
- public static int parseInt(JsonObject o, String field, int def) {
- return o.has(field) ? o.get(field).getAsInt() : def;
- }
-
- public static int parseInt(JsonObject o, String field) {
- return parseInt(o, field, 0);
- }
-
- public static Date parseDate(JsonObject o, String field, Date def) {
- return o.has(field) ? ISODateTimeFormat.dateTimeNoMillis().parseDateTime(o.get(field).getAsString()).toDate() : def;
- }
-
- public static Date parseDate(JsonObject o, String field) {
- return parseDate(o, field, null);
- }
-
- protected BaseEntity() {
- }
-}
View
31 client/src/main/java/io/iron/ironworker/client/entities/CodeEntity.java
@@ -1,38 +1,31 @@
package io.iron.ironworker.client.entities;
-import com.google.gson.JsonObject;
+import com.google.gson.annotations.SerializedName;
import java.util.Date;
-public class CodeEntity extends BaseEntity {
+public class CodeEntity {
+ @SerializedName("id")
String id;
+ @SerializedName("project_id")
String projectId;
+ @SerializedName("name")
String name;
+ @SerializedName("runtime")
String runtime;
+ @SerializedName("rev")
int revision;
+ @SerializedName("latest_history_id")
String latestHistoryId;
+ @SerializedName("latest_checksum")
String latestChecksum;
+ @SerializedName("latest_change")
Date latestChange;
+ @SerializedName("created_at")
Date createdAt;
+ @SerializedName("updated_at")
Date updatedAt;
- public static CodeEntity fromJsonObject(JsonObject o) {
- CodeEntity c = new CodeEntity();
-
- c.id = parseString(o, "id");
- c.projectId = parseString(o, "project_id");
- c.name = parseString(o, "name");
- c.runtime = parseString(o, "runtime");
- c.revision = parseInt(o, "rev");
- c.latestHistoryId = parseString(o, "latest_history_id");
- c.latestChecksum = parseString(o, "latest_checksum");
- c.latestChange = parseDate(o, "latest_change");
- c.createdAt = parseDate(o, "created_at");
- c.updatedAt = parseDate(o, "updated_at");
-
- return c;
- }
-
protected CodeEntity() {
}
View
39 client/src/main/java/io/iron/ironworker/client/entities/CodeRevisionEntity.java
@@ -1,36 +1,29 @@
package io.iron.ironworker.client.entities;
-import com.google.gson.JsonObject;
+import com.google.gson.annotations.SerializedName;
import java.util.Date;
-public class CodeRevisionEntity extends BaseEntity {
+public class CodeRevisionEntity {
+ @SerializedName("id")
String id;
- String codeId;
+ @SerializedName("project_id")
String projectId;
+ @SerializedName("code_id")
+ String codeId;
+ @SerializedName("name")
String name;
+ @SerializedName("runtime")
String runtime;
+ @SerializedName("file_name")
String runner;
+ @SerializedName("rev")
int revision;
+ @SerializedName("created_at")
Date createdAt;
+ @SerializedName("updated_at")
Date updatedAt;
- public static CodeRevisionEntity fromJsonObject(JsonObject o) {
- CodeRevisionEntity cr = new CodeRevisionEntity();
-
- cr.id = parseString(o, "id");
- cr.codeId = parseString(o, "code_id");
- cr.projectId = parseString(o, "project_id");
- cr.name = parseString(o, "name");
- cr.runtime = parseString(o, "runtime");
- cr.runner = parseString(o, "file_name");
- cr.revision = parseInt(o, "rev");
- cr.createdAt = parseDate(o, "created_at");
- cr.updatedAt = parseDate(o, "updated_at");
-
- return cr;
- }
-
protected CodeRevisionEntity() {
}
@@ -38,14 +31,14 @@ public String getId() {
return id;
}
- public String getCodeId() {
- return codeId;
- }
-
public String getProjectId() {
return projectId;
}
+ public String getCodeId() {
+ return codeId;
+ }
+
public String getName() {
return name;
}
View
27 client/src/main/java/io/iron/ironworker/client/entities/Codes.java
@@ -1,27 +0,0 @@
-package io.iron.ironworker.client.entities;
-
-import java.util.List;
-
-/**
- * User: Julien
- * Date: 22/03/12
- * Time: 17:27
- */
-public class Codes {
- private List<Code> codes;
-
- public List<Code> getCodes() {
- return codes;
- }
-
- public void setCodes(List<Code> codes) {
- this.codes = codes;
- }
-
- @Override
- public String toString() {
- return "Codes{" +
- "codes=" + codes +
- '}';
- }
-}
View
113 client/src/main/java/io/iron/ironworker/client/entities/ScheduleEntity.java
@@ -0,0 +1,113 @@
+package io.iron.ironworker.client.entities;
+
+import com.google.gson.annotations.SerializedName;
+
+import java.util.Date;
+
+public class ScheduleEntity {
+ @SerializedName("id")
+ String id;
+ @SerializedName("project_id")
+ String projectId;
+ @SerializedName("code_name")
+ String codeName;
+ @SerializedName("priority")
+ int priority;
+ @SerializedName("start_at")
+ Date startAt;
+ @SerializedName("end_at")
+ Date endAt;
+ @SerializedName("delay")
+ int delay;
+ @SerializedName("run_every")
+ int runEvery;
+ @SerializedName("run_times")
+ int runTimes;
+ @SerializedName("next_start")
+ Date nextStart;
+ @SerializedName("status")
+ String status;
+ @SerializedName("last_run_time")
+ long lastRunTime;
+ @SerializedName("run_count")
+ int runCount;
+ @SerializedName("payload")
+ String payload;
+ @SerializedName("msg")
+ String msg;
+ @SerializedName("created_at")
+ long createdAt;
+ @SerializedName("updated_at")
+ long updatedAt;
+
+ protected ScheduleEntity() {
+ }
+
+ public String getId() {
+ return id;
+ }
+
+ public String getProjectId() {
+ return projectId;
+ }
+
+ public String getCodeName() {
+ return codeName;
+ }
+
+ public int getPriority() {
+ return priority;
+ }
+
+ public Date getStartAt() {
+ return startAt;
+ }
+
+ public Date getEndAt() {
+ return endAt;
+ }
+
+ public int getDelay() {
+ return delay;
+ }
+
+ public int getRunEvery() {
+ return runEvery;
+ }
+
+ public int getRunTimes() {
+ return runTimes;
+ }
+
+ public Date getNextStart() {
+ return nextStart;
+ }
+
+ public String getStatus() {
+ return status;
+ }
+
+ public Date getLastRunTime() {
+ return lastRunTime == 0 ? null : new Date(lastRunTime / 1000000);
+ }
+
+ public int getRunCount() {
+ return runCount;
+ }
+
+ public String getPayload() {
+ return payload;
+ }
+
+ public String getMsg() {
+ return msg;
+ }
+
+ public Date getCreatedAt() {
+ return createdAt == 0 ? null : new Date(createdAt / 1000000);
+ }
+
+ public Date getUpdatedAt() {
+ return updatedAt == 0 ? null : new Date(updatedAt / 1000000);
+ }
+}
View
57 client/src/main/java/io/iron/ironworker/client/entities/TaskEntity.java
@@ -1,48 +1,43 @@
package io.iron.ironworker.client.entities;
-import com.google.gson.JsonObject;
+import com.google.gson.annotations.SerializedName;
import java.util.Date;
-public class TaskEntity extends BaseEntity {
+public class TaskEntity {
+ @SerializedName("id")
String id;
+ @SerializedName("project_id")
String projectId;
+ @SerializedName("code_id")
String codeId;
+ @SerializedName("code_name")
String codeName;
+ @SerializedName("priority")
+ int priority;
+ @SerializedName("timeout")
+ int timeout;
+ @SerializedName("status")
String status;
+ @SerializedName("start_time")
Date startTime;
+ @SerializedName("end_time")
Date endTime;
+ @SerializedName("duration")
int duration;
+ @SerializedName("run_times")
int runTimes;
- int timeout;
+ @SerializedName("payload")
String payload;
+ @SerializedName("percent")
int percent;
+ @SerializedName("msg")
String msg;
+ @SerializedName("created_at")
Date createdAt;
+ @SerializedName("updated_at")
Date updatedAt;
- public static TaskEntity fromJsonObject(JsonObject o) {
- TaskEntity t = new TaskEntity();
-
- t.id = parseString(o, "id");
- t.projectId = parseString(o, "project_id");
- t.codeId = parseString(o, "code_id");
- t.codeName = parseString(o, "code_name");
- t.status = parseString(o, "status");
- t.startTime = parseDate(o, "start_time");
- t.endTime = parseDate(o, "end_time");
- t.duration = parseInt(o, "duration");
- t.runTimes = parseInt(o, "run_times");
- t.timeout = parseInt(o, "timeout");
- t.payload = parseString(o, "payload");
- t.percent = parseInt(o, "percent");
- t.msg = parseString(o, "msg");
- t.createdAt = parseDate(o, "created_at");
- t.updatedAt = parseDate(o, "updated_at");
-
- return t;
- }
-
protected TaskEntity() {
}
@@ -62,6 +57,14 @@ public String getCodeName() {
return codeName;
}
+ public int getPriority() {
+ return priority;
+ }
+
+ public int getTimeout() {
+ return timeout;
+ }
+
public String getStatus() {
return status;
}
@@ -82,10 +85,6 @@ public int getRunTimes() {
return runTimes;
}
- public int getTimeout() {
- return timeout;
- }
-
public String getPayload() {
return payload;
}
View
34 client/src/test/java/io/iron/ironworker/client/ClientTest.java
@@ -1,34 +0,0 @@
-package io.iron.ironworker.client;
-
-import io.iron.ironworker.client.entities.CodeEntity;
-import io.iron.ironworker.client.entities.Codes;
-import org.junit.BeforeClass;
-import org.junit.Test;
-
-import java.util.List;
-
-import static org.junit.Assert.*;
-
-/**
- * User: Julien
- * Date: 22/03/12
- * Time: 17:24
- */
-public class ClientTest {
-
- private static String _ironToken;
- private static String _ironProjectId;
-
- @BeforeClass
- public static void init() {
- _ironToken = "P7g9m72eTekPHd0bNCkCeBytrhQ";
- _ironProjectId = "4f63775f8de4561d19000804";
- }
-
- @Test
- public void shouldHaveEnvironmentVariable() throws APIException {
- Client client = new Client(_ironToken, _ironProjectId);
- Codes codes = client.getCodes();
- System.out.println(codes);
- }
-}

No commit comments for this range

Something went wrong with that request. Please try again.