Documentation

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

$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
link
https://developers.amadeus.com/self-service/category/destination-content/api-doc/tours-and-activities/api-reference
throws
ResponseException

when an exception occurs

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
Return values
BySquare

Search results