public class CountryService extends Object
| Constructor and Description |
|---|
CountryService(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
List<RestCountry> |
all()
All
This operation returns all countries.
|
List<RestCountry> |
all(Map<String,Object> params)
All
This operation returns all countries.
|
com.google.api.client.http.HttpResponse |
allForHttpResponse() |
com.google.api.client.http.HttpResponse |
allForHttpResponse(Map<String,Object> params) |
ApiClient |
getApiClient() |
void |
setApiClient(ApiClient apiClient) |
public CountryService(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public List<RestCountry> all() throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public List<RestCountry> all(Map<String,Object> params) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
params - Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public com.google.api.client.http.HttpResponse allForHttpResponse()
throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse allForHttpResponse(Map<String,Object> params) throws IOException
IOExceptionCopyright © 2022. All rights reserved.