Skip to content

Commit 04ddc01

Browse files
committed
token renamed to apiKey
1 parent ba8e205 commit 04ddc01

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
group 'io.visual-regression-tracker.sdk-java'
2-
version '1.0-SNAPSHOT'
2+
version '1.0.1'
33

44
apply plugin: 'java'
55
apply plugin: "io.freefair.lombok"

src/main/java/io/visual_regression_tracker/sdk_java/Config.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
public class Config {
77
String apiUrl;
88
String projectId;
9-
String token;
9+
String apiKey;
1010
String branchName;
1111
}

src/main/java/io/visual_regression_tracker/sdk_java/VisualRegressionTracker.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ void startBuild() throws IOException {
2929

3030
Request request = new Request.Builder()
3131
.url(this.config.apiUrl.concat("/builds"))
32-
.addHeader("apiKey", this.config.token)
32+
.addHeader("apiKey", this.config.apiKey)
3333
.post(body)
3434
.build();
3535

@@ -56,7 +56,7 @@ TestResultDTO submitTestRun(String name, String imageBase64, TestRunOptions test
5656

5757
Request request = new Request.Builder()
5858
.url(this.config.apiUrl.concat("/test"))
59-
.addHeader("apiKey", this.config.token)
59+
.addHeader("apiKey", this.config.apiKey)
6060
.post(body)
6161
.build();
6262

src/test/java/io/visual_regression_tracker/sdk_java/Example.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
public class Example {
1111
Config config = new Config(
1212
"http://localhost:4200",
13-
"003f5fcf-6c5f-4f1f-a99f-82a697711382",
14-
"F5Z2H0H2SNMXZVHX0EA4YQM1MGDD",
13+
"90e3b95d-6468-4771-a2e7-7bc7d3ca2b1b",
14+
"W5KJ9ZGXRV458AH1XZEJ8WF284ED",
1515
"develop"
1616
);
1717

0 commit comments

Comments
 (0)