|
1 | 1 | # educational-experiment-service-java-client-libs |
2 | 2 |
|
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); |
5 | 5 |
|
6 | 6 | # Functions |
7 | 7 |
|
@@ -36,14 +36,14 @@ Updates/Set the working group of the initialized user |
36 | 36 | ## getAllExperimentCondition |
37 | 37 | Get all the experiment assignments for the initialized user |
38 | 38 |
|
39 | | -> getAllExperimentCondition(String context, callback) |
| 39 | +> getAllExperimentCondition(callback) |
40 | 40 |
|
41 | 41 | ## getExperimentCondition |
42 | 42 | Returns the Experiment Condition for the partition and point received from the getAllExperimentConditions for the initialized user |
43 | 43 |
|
44 | | -> getExperimentCondition(String context, String experimentPoint, callback) |
| 44 | +> getExperimentCondition(String experimentPoint, callback) |
45 | 45 |
|
46 | | -> getExperimentCondition(String context, String experimentPoint, String experimentId, callback) |
| 46 | +> getExperimentCondition(String experimentPoint, String experimentId, callback) |
47 | 47 |
|
48 | 48 | ## markExperimentPoint |
49 | 49 | Calls markExperimentPoint for experiment point and partitionId. It will use the user definition from initialized user |
@@ -91,9 +91,9 @@ getFeatureFlag(String key, callback) |
91 | 91 | String baseUrl = "http://upgrade-development.us-east-1.elasticbeanstalk.com/"; |
92 | 92 | String userId = "user1"; |
93 | 93 |
|
94 | | - ExperimentClient experimentClient = new ExperimentClient( userId , authToken , baseUrl); |
| 94 | + ExperimentClient experimentClient = new ExperimentClient( userId , appContext, authToken , baseUrl); |
95 | 95 |
|
96 | | - experimentClient.getExperimentCondition("appContext", "Workspace1", new ResponseCallback<GetExperimentCondition>() { |
| 96 | + experimentClient.getExperimentCondition("Workspace1", new ResponseCallback<GetExperimentCondition>() { |
97 | 97 |
|
98 | 98 | @Override |
99 | 99 | public void onSuccess(@NonNull GetExperimentCondition t) { |
|
0 commit comments