public class RestClient extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
API_V1_EVENTS |
static String |
APPLICATION_JSON |
static String |
HTTPS |
static int |
PORT |
static String |
UTF_8 |
static String |
VERSION |
| Constructor and Description |
|---|
RestClient(String apiKey,
FeatureflowConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
postEvents(List<? extends Event> events) |
void |
registerFeatureControls(List<Feature> featureRegistrations)
Register any code defined feature controls as available and retrieve a list of features form the server
|
public static final String VERSION
public static final String APPLICATION_JSON
public static final String UTF_8
public static final String API_V1_EVENTS
public static final String HTTPS
public static final int PORT
public RestClient(String apiKey, FeatureflowConfig config)
public void registerFeatureControls(List<Feature> featureRegistrations) throws IOException
featureRegistrations - list of features to registerIOException - cannot connect to registerCopyright © 2017. All rights reserved.