Activities
in package
A namespaced client for the "/v1/shopping/activities" endpoints.
Access via the Amadeus client object.
$amadeus = Amadeus::builder("clientId", "secret")->build(); $amadeus->getShopping()->getActivities();
Table of Contents
- $amadeus : Amadeus
- $bySquare : BySquare
- A namespaced client for the "/v1/shopping/activities/by-square" endpoints.
- __construct() : mixed
- Constructor.
- get() : array<string|int, Activity>
- Tours and Activities API:
- getBySquare() : BySquare
- Get a namespaced client for the "/v1/shopping/activities/by-square" endpoints.
Properties
$amadeus
private
Amadeus
$amadeus
$bySquare
A namespaced client for the "/v1/shopping/activities/by-square" endpoints.
private
BySquare
$bySquare
Methods
__construct()
Constructor.
public
__construct(Amadeus $amadeus) : mixed
Parameters
- $amadeus : Amadeus
Return values
mixed —get()
Tours and Activities API:
public
get(array<string|int, mixed> $params) : array<string|int, Activity>
Find a list of activities around a given location.
$amadeus->getShopping()->getActivities()->get( ["longitude" => 2.160873, "latitude" => 41.397158] );
Parameters
- $params : array<string|int, mixed>
-
the parameters to send to the API
Tags
Return values
array<string|int, Activity> —an API resource
getBySquare()
Get a namespaced client for the "/v1/shopping/activities/by-square" endpoints.
public
getBySquare() : BySquare