public class Activities
extends java.lang.Object
A namespaced client for the
/v1/shopping/activities endpoints.
Access via the Amadeus client object.
Amadeus amadeus = Amadeus.builder("clientId", "secret").build();
amadeus.shopping.activities;| Modifier and Type | Field and Description |
|---|---|
BySquare |
bySquare
A namespaced client for the
/v1/shopping/activities/by-square endpoints. |
| Constructor and Description |
|---|
Activities(Amadeus client)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Activity[] |
get()
Convenience method for calling
get without any parameters. |
Activity[] |
get(Params params)
Returns a list of activities near to a given point.
|
public BySquare bySquare
A namespaced client for the
/v1/shopping/activities/by-square endpoints.
public Activities(Amadeus client)
public Activity[] get(Params params) throws ResponseException
Returns a list of activities near to a given point.
amadeus.amadeus.shopping.activities.get(Params
.with("longitude", 2.160873)
.and("latitude", 41.397158));params - the parameters to send to the APIResponseException - when an exception occurspublic Activity[] get() throws ResponseException
get without any parameters.ResponseExceptionget()