public interface AuthApi
| Modifier and Type | Method and Description |
|---|---|
retrofit2.Call<ApiTokens> |
obtainTokens(String grantType,
String password,
String refreshToken,
String terminalCode)
Get authorization token
|
@FormUrlEncoded @POST(value="api/auth/token") retrofit2.Call<ApiTokens> obtainTokens(@Field(value="grant_type") String grantType, @Field(value="password") String password, @Field(value="refresh_token") String refreshToken, @Field(value="terminal_code") String terminalCode)
grantType - Token request credentials representation (required)password - Terminal password value (only for [password] grant type) (optional)refreshToken - Refresh token string (only for [refresh_token] grant type) (optional)terminalCode - Terminal code value (optional)Copyright © 2021. All rights reserved.