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
14 changes: 7 additions & 7 deletions clientlibs/java/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# educational-experiment-service-java-client-libs

Make a new instance of ExperimentClient class by passing `userId, authToken, baseUrl`.
> ExperimentClient experimentClient = new ExperimentClient(userId , authToken , baseUrl);
Make a new instance of ExperimentClient class by passing `userId, context, authToken, baseUrl`.
> ExperimentClient experimentClient = new ExperimentClient(userId , context, authToken , baseUrl);

# Functions

Expand Down Expand Up @@ -36,14 +36,14 @@ Updates/Set the working group of the initialized user
## getAllExperimentCondition
Get all the experiment assignments for the initialized user

> getAllExperimentCondition(String context, callback)
> getAllExperimentCondition(callback)

## getExperimentCondition
Returns the Experiment Condition for the partition and point received from the getAllExperimentConditions for the initialized user

> getExperimentCondition(String context, String experimentPoint, callback)
> getExperimentCondition(String experimentPoint, callback)

> getExperimentCondition(String context, String experimentPoint, String experimentId, callback)
> getExperimentCondition(String experimentPoint, String experimentId, callback)

## markExperimentPoint
Calls markExperimentPoint for experiment point and partitionId. It will use the user definition from initialized user
Expand Down Expand Up @@ -91,9 +91,9 @@ getFeatureFlag(String key, callback)
String baseUrl = "http://upgrade-development.us-east-1.elasticbeanstalk.com/";
String userId = "user1";

ExperimentClient experimentClient = new ExperimentClient( userId , authToken , baseUrl);
ExperimentClient experimentClient = new ExperimentClient( userId , appContext, authToken , baseUrl);

experimentClient.getExperimentCondition("appContext", "Workspace1", new ResponseCallback<GetExperimentCondition>() {
experimentClient.getExperimentCondition("Workspace1", new ResponseCallback<GetExperimentCondition>() {

@Override
public void onSuccess(@NonNull GetExperimentCondition t) {
Expand Down
2 changes: 1 addition & 1 deletion clientlibs/java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
at the same time that happen to rev to the same new version will be caught
by a merge conflict. -->

<version>6.1.1</version> <!-- 6.1.1: switch to jersey-apache-connector -->
<version>6.1.2</version> <!-- 6.1.2: add context to client object-->
<build>
<plugins>
<plugin>
Expand Down
2 changes: 1 addition & 1 deletion clientlibs/js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "upgrade_client_lib",
"version": "6.1.1",
"version": "6.1.2",
"description": "Client library to communicate with the Upgrade server",
"files": [
"dist/*"
Expand Down
Loading