Package co.arago.hiro.client.rest
Class AuthAPI.PutMeAvatarCommand
- java.lang.Object
-
- co.arago.hiro.client.rest.AuthenticatedAPIHandler.APIRequestConf<T,R>
-
- co.arago.hiro.client.rest.AuthenticatedAPIHandler.SendStreamAPIRequestConf<AuthAPI.PutMeAvatarCommand,java.lang.String>
-
- co.arago.hiro.client.rest.AuthAPI.PutMeAvatarCommand
-
- Enclosing class:
- AuthAPI
public class AuthAPI.PutMeAvatarCommand extends AuthenticatedAPIHandler.SendStreamAPIRequestConf<AuthAPI.PutMeAvatarCommand,java.lang.String>
set avatar of current token's accountAPI PUT /api/auth/[version]/me/avatar
- See Also:
- API Documentation
-
-
Field Summary
-
Fields inherited from class co.arago.hiro.client.rest.AuthenticatedAPIHandler.SendStreamAPIRequestConf
streamContainer
-
Fields inherited from class co.arago.hiro.client.rest.AuthenticatedAPIHandler.APIRequestConf
fragment, headers, httpRequestTimeout, maxRetries, path, query
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPutMeAvatarCommand(StreamContainer streamContainer)protectedPutMeAvatarCommand(java.io.InputStream inputStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringexecute()protected AuthAPI.PutMeAvatarCommandself()-
Methods inherited from class co.arago.hiro.client.rest.AuthenticatedAPIHandler.SendStreamAPIRequestConf
setCharset, setContentType, setHttpHeaders, setMediaType
-
Methods inherited from class co.arago.hiro.client.rest.AuthenticatedAPIHandler.APIRequestConf
setHttpRequestTimeout, setMaxRetries, setUrlFragment, setUrlQuery
-
-
-
-
Constructor Detail
-
PutMeAvatarCommand
protected PutMeAvatarCommand(StreamContainer streamContainer)
-
PutMeAvatarCommand
protected PutMeAvatarCommand(java.io.InputStream inputStream)
-
-
Method Detail
-
self
protected AuthAPI.PutMeAvatarCommand self()
- Specified by:
selfin classAuthenticatedAPIHandler.APIRequestConf<AuthAPI.PutMeAvatarCommand,java.lang.String>
-
execute
public java.lang.String execute() throws HiroException, java.io.IOException, java.lang.InterruptedException- Specified by:
executein classAuthenticatedAPIHandler.APIRequestConf<AuthAPI.PutMeAvatarCommand,java.lang.String>- Returns:
- A String with the size of the uploaded avatar.
- 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.java.lang.IllegalArgumentException- When the Content-Type is missing.
-
-