BySquare
in package
A namespaced client for the "/v1/shopping/activities/by-square" endpoints.
Access via the Amadeus client object.
$amadeus = Amadeus::builder("clientId", "secret")->build(); $amadeus->getShopping()->getActivities()->getBySquare();
Table of Contents
- $amadeus : Amadeus
- __construct() : mixed
- Constructor.
- get() : array<string|int, Activity>
- Tours and Activities API:
Properties
$amadeus
private
Amadeus
$amadeus
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 within a square defined by cardinal points.
$amadeus->getShopping()->getActivities()->getBySquare()->get( ["west" => 2.160873, "north" => 41.397158, "south" => 41.394582, "east" => 2.177181] );
Parameters
- $params : array<string|int, mixed>
-
the parameters to send to the API
Tags
Return values
array<string|int, Activity> —an API resource