Package co.arago.hiro.client.rest
Class AuthAPI.GetMeAccountCommand
- java.lang.Object
-
- co.arago.hiro.client.rest.AuthenticatedAPIHandler.APIRequestConf<AuthAPI.GetMeAccountCommand,HiroVertexMessage>
-
- co.arago.hiro.client.rest.AuthAPI.GetMeAccountCommand
-
- Enclosing class:
- AuthAPI
public class AuthAPI.GetMeAccountCommand extends AuthenticatedAPIHandler.APIRequestConf<AuthAPI.GetMeAccountCommand,HiroVertexMessage>
get account information about current tokenAPI GET /api/auth/[version]/me/account
- See Also:
- API Documentation
-
-
Field Summary
-
Fields inherited from class co.arago.hiro.client.rest.AuthenticatedAPIHandler.APIRequestConf
fragment, headers, httpRequestTimeout, maxRetries, path, query
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGetMeAccountCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HiroVertexMessageexecute()protected AuthAPI.GetMeAccountCommandself()AuthAPI.GetMeAccountCommandsetProfile(java.lang.Boolean profile)-
Methods inherited from class co.arago.hiro.client.rest.AuthenticatedAPIHandler.APIRequestConf
setHttpHeaders, setHttpRequestTimeout, setMaxRetries, setUrlFragment, setUrlQuery
-
-
-
-
Method Detail
-
setProfile
public AuthAPI.GetMeAccountCommand setProfile(java.lang.Boolean profile)
- Parameters:
profile- Query parameter "profile=[true|false]".- Returns:
self()
-
self
protected AuthAPI.GetMeAccountCommand self()
- Specified by:
selfin classAuthenticatedAPIHandler.APIRequestConf<AuthAPI.GetMeAccountCommand,HiroVertexMessage>
-
execute
public HiroVertexMessage execute() throws HiroException, java.io.IOException, java.lang.InterruptedException
- Specified by:
executein classAuthenticatedAPIHandler.APIRequestConf<AuthAPI.GetMeAccountCommand,HiroVertexMessage>- Returns:
- A
HiroVertexMessagewith the result data. - Throws:
HiroException- When the call returns a http status error.java.io.IOException- When the call got an IO error.java.lang.InterruptedException- When the call gets interrupted.
-
-