Package co.arago.hiro.client.rest
Class AuthAPI.GetMeAvatarCommand
- java.lang.Object
-
- co.arago.hiro.client.rest.AuthenticatedAPIHandler.APIRequestConf<AuthAPI.GetMeAvatarCommand,HttpResponseParser>
-
- co.arago.hiro.client.rest.AuthAPI.GetMeAvatarCommand
-
- Enclosing class:
- AuthAPI
public class AuthAPI.GetMeAvatarCommand extends AuthenticatedAPIHandler.APIRequestConf<AuthAPI.GetMeAvatarCommand,HttpResponseParser>
get avatar of current token's accountAPI GET /api/auth/[version]/me/avatar
- 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 protectedGetMeAvatarCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpResponseParserexecute()protected AuthAPI.GetMeAvatarCommandself()-
Methods inherited from class co.arago.hiro.client.rest.AuthenticatedAPIHandler.APIRequestConf
setHttpHeaders, setHttpRequestTimeout, setMaxRetries, setUrlFragment, setUrlQuery
-
-
-
-
Method Detail
-
self
protected AuthAPI.GetMeAvatarCommand self()
- Specified by:
selfin classAuthenticatedAPIHandler.APIRequestConf<AuthAPI.GetMeAvatarCommand,HttpResponseParser>
-
execute
public HttpResponseParser execute() throws HiroException, java.io.IOException, java.lang.InterruptedException
- Specified by:
executein classAuthenticatedAPIHandler.APIRequestConf<AuthAPI.GetMeAvatarCommand,HttpResponseParser>- Returns:
- A
HttpResponseParsercontaining the InputStream of the image, the mediaType and the size (if available). - 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.
-
-