public interface AuthenticateApi
| Modifier and Type | Method and Description |
|---|---|
retrofit2.Call<Void> |
authenticateAccountTypeActivateActivationCodeGet(String accountType,
String activationCode,
String email)
Activate account
Activate account
|
retrofit2.Call<InlineResponse2001> |
authenticateAccountTypeCreatePost(String accountType,
Account body)
Create an account of the corresponding type in the endpoint
Create an account of the corresponding type in the endpoint
|
retrofit2.Call<InlineResponse2007> |
authenticateAccountTypePost(String accountType,
String email,
String password)
Signin a user by providing their email and password
Generated jwt_token expires after one week, after which you have to call the renew api endpoint
|
retrofit2.Call<Void> |
authenticateAccountTypeResetConfirmCodePost(String accountType,
String code,
Account body)
Reset Account confirmation
Reset Account confirmation
|
retrofit2.Call<Void> |
authenticateAccountTypeResetPost(String accountType,
Account body)
Reset account
Reset account
|
retrofit2.Call<InlineResponse2007> |
authenticateAccountTypeTokenRenewPost(String accountType,
String accessToken,
String jwtToken)
Renew a token by providing the access_token and jwt_token provided after successful login
You can renew token without requesting the user to sign in again
|
retrofit2.Call<InlineResponse2007> |
authenticateDeveloperNewTokenPost(Account body,
AuthenticatorLog body2)
Developer can request a new token that is tied to his account
Developer can request a new token that is tied to his account
|
@GET(value="authenticate/{account_type}/activate/{activation_code}")
retrofit2.Call<Void> authenticateAccountTypeActivateActivationCodeGet(@Path(value="account_type")
String accountType,
@Path(value="activation_code")
String activationCode,
@Query(value="email")
String email)
accountType - Account type (required)activationCode - Activation code sent to users email (required)email - Email address (required)@POST(value="authenticate/{account_type}/create")
retrofit2.Call<InlineResponse2001> authenticateAccountTypeCreatePost(@Path(value="account_type")
String accountType,
@Body
Account body)
accountType - Account type (required)body - Should be sent as body of the request (required)@POST(value="authenticate/{account_type}")
retrofit2.Call<InlineResponse2007> authenticateAccountTypePost(@Path(value="account_type")
String accountType,
@Body
String email,
@Body
String password)
accountType - Account type (required)email - (required)password - (required)@POST(value="authenticate/{account_type}/reset/confirm/{code}")
retrofit2.Call<Void> authenticateAccountTypeResetConfirmCodePost(@Path(value="account_type")
String accountType,
@Path(value="code")
String code,
@Body
Account body)
accountType - Account type (required)code - Reset code sent via email (required)body - Properties of account that needs to be change. Mostly password or email (required)@POST(value="authenticate/{account_type}/reset")
retrofit2.Call<Void> authenticateAccountTypeResetPost(@Path(value="account_type")
String accountType,
@Body
Account body)
accountType - Account type (required)body - Should be sent as body of the request (required)@POST(value="authenticate/{account_type}/token/renew")
retrofit2.Call<InlineResponse2007> authenticateAccountTypeTokenRenewPost(@Path(value="account_type")
String accountType,
@Body
String accessToken,
@Body
String jwtToken)
accountType - Account type (required)accessToken - (required)jwtToken - (required)@POST(value="authenticate/developer/new-token") retrofit2.Call<InlineResponse2007> authenticateDeveloperNewTokenPost(@Body Account body, @Body AuthenticatorLog body2)
body - Some parameters from Account are allowed (required)body2 - Some parameters from AuthenticatorLog are allowed (required)Copyright © 2017. All rights reserved.