analyticsEndpoint static method
Get the analytics endpoint for the given environment.
Implementation
static APIEndpoint analyticsEndpoint(SDKEnvironment environment) {
switch (environment) {
case SDKEnvironment.development:
return APIEndpoint.devAnalytics;
case SDKEnvironment.staging:
case SDKEnvironment.production:
return APIEndpoint.analytics;
}
}