Skip to content

Commit 694bf39

Browse files
authored
clientlib versions to 6.1.2; update java README (#2634)
1 parent ab29161 commit 694bf39

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

clientlibs/java/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# educational-experiment-service-java-client-libs
22

3-
Make a new instance of ExperimentClient class by passing `userId, authToken, baseUrl`.
4-
> ExperimentClient experimentClient = new ExperimentClient(userId , authToken , baseUrl);
3+
Make a new instance of ExperimentClient class by passing `userId, context, authToken, baseUrl`.
4+
> ExperimentClient experimentClient = new ExperimentClient(userId , context, authToken , baseUrl);
55
66
# Functions
77

@@ -36,14 +36,14 @@ Updates/Set the working group of the initialized user
3636
## getAllExperimentCondition
3737
Get all the experiment assignments for the initialized user
3838

39-
> getAllExperimentCondition(String context, callback)
39+
> getAllExperimentCondition(callback)
4040
4141
## getExperimentCondition
4242
Returns the Experiment Condition for the partition and point received from the getAllExperimentConditions for the initialized user
4343

44-
> getExperimentCondition(String context, String experimentPoint, callback)
44+
> getExperimentCondition(String experimentPoint, callback)
4545
46-
> getExperimentCondition(String context, String experimentPoint, String experimentId, callback)
46+
> getExperimentCondition(String experimentPoint, String experimentId, callback)
4747
4848
## markExperimentPoint
4949
Calls markExperimentPoint for experiment point and partitionId. It will use the user definition from initialized user
@@ -91,9 +91,9 @@ getFeatureFlag(String key, callback)
9191
String baseUrl = "http://upgrade-development.us-east-1.elasticbeanstalk.com/";
9292
String userId = "user1";
9393

94-
ExperimentClient experimentClient = new ExperimentClient( userId , authToken , baseUrl);
94+
ExperimentClient experimentClient = new ExperimentClient( userId , appContext, authToken , baseUrl);
9595

96-
experimentClient.getExperimentCondition("appContext", "Workspace1", new ResponseCallback<GetExperimentCondition>() {
96+
experimentClient.getExperimentCondition("Workspace1", new ResponseCallback<GetExperimentCondition>() {
9797

9898
@Override
9999
public void onSuccess(@NonNull GetExperimentCondition t) {

clientlibs/java/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
at the same time that happen to rev to the same new version will be caught
1010
by a merge conflict. -->
1111

12-
<version>6.1.1</version> <!-- 6.1.1: switch to jersey-apache-connector -->
12+
<version>6.1.2</version> <!-- 6.1.2: add context to client object-->
1313
<build>
1414
<plugins>
1515
<plugin>

clientlibs/js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "upgrade_client_lib",
3-
"version": "6.1.1",
3+
"version": "6.1.2",
44
"description": "Client library to communicate with the Upgrade server",
55
"files": [
66
"dist/*"

0 commit comments

Comments
 (0)