Future<TerraApiResponse<Void>> |
TerraClientV2.deauthenticateUser(PartialUser user) |
Asynchronously makes a request to the /auth/deauthenticateUser endpoint to
deauthenticate the given user with Terra, terminating the connection.
|
Future<TerraApiResponse<AuthenticationResponse>> |
TerraClientV2.generateAuthenticationURL(String resource) |
Asynchronously makes a request to the /auth/authenticateUser endpoint to
authenticate a user for the specified resource
If successful, the response will have a 200 status code with the authentication URL.
|
Future<TerraApiResponse<AuthenticationResponse>> |
TerraClientV2.generateAuthenticationURL(String resource,
String reference_id) |
Asynchronously makes a request to the /auth/authenticateUser endpoint to
authenticate a user for the specified resource
If successful, the response will have a 200 status code with the authentication URL.
|
Future<TerraApiResponse<AuthenticationResponse>> |
TerraClientV2.generateAuthenticationURL(String resource,
String reference_id,
String auth_success_redirect_url) |
Asynchronously makes a request to the /auth/authenticateUser endpoint to
authenticate a user for the specified resource
If successful, the response will have a 200 status code with the authentication URL.
|
Future<TerraApiResponse<AuthenticationResponse>> |
TerraClientV2.generateAuthenticationURL(String resource,
String reference_id,
String auth_success_redirect_url,
String auth_failure_redirect_url) |
Asynchronously makes a request to the /auth/authenticateUser endpoint to
authenticate a user for the specified resource
If successful, the response will have a 200 status code with the authentication URL.
|
Future<TerraApiResponse<GenerateWidgetResponse>> |
TerraClientV2.generateWidgetSession(String providers) |
Asynchronously makes a request to the /auth/generateWidgetSession endpoint to
generate a widget session for user authentication
If successful, the response will have a 200 status code with the widget session link.
|
Future<TerraApiResponse<GenerateWidgetResponse>> |
TerraClientV2.generateWidgetSession(String providers,
String reference_id) |
Asynchronously makes a request to the /auth/generateWidgetSession endpoint to
generate a widget session for user authentication
If successful, the response will have a 200 status code with the widget session link.
|
Future<TerraApiResponse<GenerateWidgetResponse>> |
TerraClientV2.generateWidgetSession(String providers,
String reference_id,
String auth_success_redirect_url) |
Asynchronously makes a request to the /auth/generateWidgetSession endpoint to
generate a widget session for user authentication
If successful, the response will have a 200 status code with the widget session link.
|
Future<TerraApiResponse<GenerateWidgetResponse>> |
TerraClientV2.generateWidgetSession(String providers,
String reference_id,
String auth_success_redirect_url,
String auth_failure_redirect_url) |
Asynchronously makes a request to the /auth/generateWidgetSession endpoint to
generate a widget session for user authentication
If successful, the response will have a 200 status code with the widget session link.
|
Future<TerraApiResponse<GenerateWidgetResponse>> |
TerraClientV2.generateWidgetSession(String providers,
String reference_id,
String auth_success_redirect_url,
String auth_failure_redirect_url,
String language) |
Asynchronously makes a request to the /auth/generateWidgetSession endpoint to
generate a widget session for user authentication
If successful, the response will have a 200 status code with the widget session link.
|
Future<TerraApiResponse<GenerateWidgetResponse>> |
TerraClientV2.generateWidgetSession(String providers,
String reference_id,
String auth_success_redirect_url,
String auth_failure_redirect_url,
String language,
boolean show_disconnect) |
Asynchronously makes a request to the /auth/generateWidgetSession endpoint to
generate a widget session for user authentication
If successful, the response will have a 200 status code with the widget session link.
|
Future<TerraApiResponse<Activity>> |
TerraClientV2.getActivityForUser(PartialUser user,
Instant startTime,
@Nullable Instant endTime) |
Asynchronously makes a request to the /activity endpoint to fetch the activity data
for the given user.
|
Future<TerraApiResponse<Activity>> |
TerraClientV2.getActivityForUser(PartialUser user,
Instant startTime,
@Nullable Instant endTime,
RequestConfig requestConfig) |
Asynchronously makes a request to the /activity endpoint to fetch the activity data
for the given user.
|
Future<? extends TerraApiResponse<? extends User>> |
TerraClientV2.getAllUsers() |
Makes a request to the /subscriptions endpoint to fetch all users
registered with your developer ID.
|
Future<TerraApiResponse<Athlete>> |
TerraClientV2.getAthleteForUser(PartialUser user) |
Asynchronously makes a request to the /athlete endpoint to fetch the athlete data
for the given user.
|
Future<TerraApiResponse<Athlete>> |
TerraClientV2.getAthleteForUser(PartialUser user,
RequestConfig requestConfig) |
Asynchronously makes a request to the /athlete endpoint to fetch the athlete data
for the given user.
|
Future<TerraApiResponse<Body>> |
TerraClientV2.getBodyForUser(PartialUser user,
Instant startTime,
@Nullable Instant endTime) |
Asynchronously makes a request to the /body endpoint to fetch the body data
for the given user.
|
Future<TerraApiResponse<Body>> |
TerraClientV2.getBodyForUser(PartialUser user,
Instant startTime,
@Nullable Instant endTime,
RequestConfig requestConfig) |
Asynchronously makes a request to the /body endpoint to fetch the body data
for the given user.
|
Future<TerraApiResponse<Daily>> |
TerraClientV2.getDailyForUser(PartialUser user,
Instant startTime,
@Nullable Instant endTime) |
Asynchronously makes a request to the /daily endpoint to fetch the daily data
for the given user.
|
Future<TerraApiResponse<Daily>> |
TerraClientV2.getDailyForUser(PartialUser user,
Instant startTime,
@Nullable Instant endTime,
RequestConfig requestConfig) |
Asynchronously makes a request to the /daily endpoint to fetch the daily data
for the given user.
|
Future<TerraApiResponse<Menstruation>> |
TerraClientV2.getMenstruationForUser(PartialUser user,
Instant startTime,
@Nullable Instant endTime) |
Asynchronously makes a request to the /menstruation endpoint to fetch the menstruation data
for the given user.
|
Future<TerraApiResponse<Menstruation>> |
TerraClientV2.getMenstruationForUser(PartialUser user,
Instant startTime,
@Nullable Instant endTime,
RequestConfig requestConfig) |
Asynchronously makes a request to the /menstruation endpoint to fetch the menstruation data
for the given user.
|
Future<TerraApiResponse<Nutrition>> |
TerraClientV2.getNutritionForUser(PartialUser user,
Instant startTime,
@Nullable Instant endTime) |
Asynchronously makes a request to the /nutrition endpoint to fetch the nutrition data
for the given user.
|
Future<TerraApiResponse<Nutrition>> |
TerraClientV2.getNutritionForUser(PartialUser user,
Instant startTime,
@Nullable Instant endTime,
RequestConfig requestConfig) |
Asynchronously makes a request to the /nutrition endpoint to fetch the nutrition data
for the given user.
|
Future<TerraApiResponse<Sleep>> |
TerraClientV2.getSleepForUser(PartialUser user,
Instant startTime,
@Nullable Instant endTime) |
Asynchronously makes a request to the /sleep endpoint to fetch the sleep data
for the given user.
|
Future<TerraApiResponse<Sleep>> |
TerraClientV2.getSleepForUser(PartialUser user,
Instant startTime,
@Nullable Instant endTime,
RequestConfig requestConfig) |
Asynchronously makes a request to the /sleep endpoint to fetch the sleep data
for the given user.
|
Future<? extends TerraApiResponse<? extends User>> |
TerraClientV2.getUser(PartialUser user) |
Asynchronously makes a request to the /userInfo endpoint to fetch the details
for the user represented by the given PartialUser .
|
Future<? extends TerraApiResponse<? extends User>> |
TerraClientV2.getUser(String userId) |
Makes a request to the /userInfo endpoint to fetch the details
for the user with the given ID.
|
Future<TerraApiResponse<ProvidersResponse>> |
TerraClientV2.listProviders() |
Asynchronously makes a request to the /integrations endpoint to fetch a list of all available providers.
|