Package co.arago.hiro.client.rest
Class AuthAPI.GetMeTeamsCommand
- java.lang.Object
-
- co.arago.hiro.client.rest.AuthenticatedAPIHandler.APIRequestConf<AuthAPI.GetMeTeamsCommand,HiroVertexListMessage>
-
- co.arago.hiro.client.rest.AuthAPI.GetMeTeamsCommand
-
- Enclosing class:
- AuthAPI
public class AuthAPI.GetMeTeamsCommand extends AuthenticatedAPIHandler.APIRequestConf<AuthAPI.GetMeTeamsCommand,HiroVertexListMessage>
gets the teams connected to current tokenAPI GET /api/auth/[version]/me/teams
- 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 protectedGetMeTeamsCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HiroVertexListMessageexecute()protected AuthAPI.GetMeTeamsCommandself()AuthAPI.GetMeTeamsCommandsetIncludeVirtual(java.lang.Boolean includeVirtual)-
Methods inherited from class co.arago.hiro.client.rest.AuthenticatedAPIHandler.APIRequestConf
setHttpHeaders, setHttpRequestTimeout, setMaxRetries, setUrlFragment, setUrlQuery
-
-
-
-
Method Detail
-
setIncludeVirtual
public AuthAPI.GetMeTeamsCommand setIncludeVirtual(java.lang.Boolean includeVirtual)
- Parameters:
includeVirtual- Query parameter "include-virtual=[true|false]".- Returns:
self()
-
self
protected AuthAPI.GetMeTeamsCommand self()
- Specified by:
selfin classAuthenticatedAPIHandler.APIRequestConf<AuthAPI.GetMeTeamsCommand,HiroVertexListMessage>
-
execute
public HiroVertexListMessage execute() throws HiroException, java.io.IOException, java.lang.InterruptedException
- Specified by:
executein classAuthenticatedAPIHandler.APIRequestConf<AuthAPI.GetMeTeamsCommand,HiroVertexListMessage>- Returns:
- A
HiroVertexListMessagewith 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.
-
-