import { MtnManagerApi, Configuration } from "@mtnmanager/sdk";
const api = new MtnManagerApi(
new Configuration({
basePath: "https://your-resort.mtnmanager.com",
})
);
try {
const data = await api.getAmenities();
console.log(data);
} catch (error) {
console.error(error);
}package main
import (
"context"
"fmt"
mtnmanager "github.com/mtnmanager/mtnmanager-sdk-go"
)
func main() {
configuration := mtnmanager.NewConfiguration()
configuration.Servers = mtnmanager.ServerConfigurations{
{URL: "https://your-resort.mtnmanager.com"},
}
client := mtnmanager.NewAPIClient(configuration)
data, _, err := client.MtnManagerAPI.GetAmenities(context.Background()).Execute()
if err != nil {
panic(err)
}
fmt.Printf("%+v\n", data)
}<?php
require_once(__DIR__ . '/vendor/autoload.php');
$config = MtnManager\Configuration::getDefaultConfiguration()
->setHost('https://your-resort.mtnmanager.com');
$apiInstance = new MtnManager\Api\MtnManagerApi(
new GuzzleHttp\Client(),
$config
);
try {
$result = $apiInstance->getAmenities();
print_r($result);
} catch (Exception $e) {
echo 'Exception: ', $e->getMessage(), PHP_EOL;
}import MtnManagerSDK
let config = MtnManagerSDKAPIConfiguration(
basePath: "https://your-resort.mtnmanager.com"
)
do {
let data = try await MtnManagerAPI.getAmenities(apiConfiguration: config)
print(data)
} catch {
print("Error: \(error)")
}curl --request GET \
--url https://{subdomain}.mtnmanager.com/api/v1/report/amenitiesimport requests
url = "https://{subdomain}.mtnmanager.com/api/v1/report/amenities"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://{subdomain}.mtnmanager.com/api/v1/report/amenities', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.get("https://{subdomain}.mtnmanager.com/api/v1/report/amenities")
.asString();require 'uri'
require 'net/http'
url = URI("https://{subdomain}.mtnmanager.com/api/v1/report/amenities")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"name": "Summit Lodge",
"description": "Mid-mountain lodge with full-service restaurant and bar.",
"category": "lodge",
"website": "https://example.com/summit-lodge",
"has_operating_hours": true,
"opens_at": "09:00",
"closes_at": "16:00",
"schedules": [],
"images": []
}
]Get Amenities
import { MtnManagerApi, Configuration } from "@mtnmanager/sdk";
const api = new MtnManagerApi(
new Configuration({
basePath: "https://your-resort.mtnmanager.com",
})
);
try {
const data = await api.getAmenities();
console.log(data);
} catch (error) {
console.error(error);
}package main
import (
"context"
"fmt"
mtnmanager "github.com/mtnmanager/mtnmanager-sdk-go"
)
func main() {
configuration := mtnmanager.NewConfiguration()
configuration.Servers = mtnmanager.ServerConfigurations{
{URL: "https://your-resort.mtnmanager.com"},
}
client := mtnmanager.NewAPIClient(configuration)
data, _, err := client.MtnManagerAPI.GetAmenities(context.Background()).Execute()
if err != nil {
panic(err)
}
fmt.Printf("%+v\n", data)
}<?php
require_once(__DIR__ . '/vendor/autoload.php');
$config = MtnManager\Configuration::getDefaultConfiguration()
->setHost('https://your-resort.mtnmanager.com');
$apiInstance = new MtnManager\Api\MtnManagerApi(
new GuzzleHttp\Client(),
$config
);
try {
$result = $apiInstance->getAmenities();
print_r($result);
} catch (Exception $e) {
echo 'Exception: ', $e->getMessage(), PHP_EOL;
}import MtnManagerSDK
let config = MtnManagerSDKAPIConfiguration(
basePath: "https://your-resort.mtnmanager.com"
)
do {
let data = try await MtnManagerAPI.getAmenities(apiConfiguration: config)
print(data)
} catch {
print("Error: \(error)")
}curl --request GET \
--url https://{subdomain}.mtnmanager.com/api/v1/report/amenitiesimport requests
url = "https://{subdomain}.mtnmanager.com/api/v1/report/amenities"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://{subdomain}.mtnmanager.com/api/v1/report/amenities', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.get("https://{subdomain}.mtnmanager.com/api/v1/report/amenities")
.asString();require 'uri'
require 'net/http'
url = URI("https://{subdomain}.mtnmanager.com/api/v1/report/amenities")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"name": "Summit Lodge",
"description": "Mid-mountain lodge with full-service restaurant and bar.",
"category": "lodge",
"website": "https://example.com/summit-lodge",
"has_operating_hours": true,
"opens_at": "09:00",
"closes_at": "16:00",
"schedules": [],
"images": []
}
]Headers
Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries). Supports en, fr, de, it, and es, with optional region tags such as fr-CA or de-CH. Defaults to English when omitted or unsupported.
Response
List of all configured amenities at the resort
Description of the amenity.
Unique identifier for the amenity.
"550e8400-e29b-41d4-a716-446655440000"
Display name of the amenity.
Category classification (e.g. restaurant, lodge, ski_school).
restaurant, coffee, bar, tubing, ski_school, rental_shop, daycare, ticketing, lodge, hotel, lockers, retail, other Website URL for the amenity, if available.
Whether this amenity reports operating hours. When false, clients should
not expect opens_at, closes_at, or schedules to ever be populated.
Recurring operating schedules for this amenity (e.g. "Saturday & Sunday, 9:00 a.m. to 4:00 p.m."), with both human-readable and structured fields.
Show child attributes
Show child attributes
Today's scheduled opening time in 24-hour format (HH:MM), in resort's local timezone.
"09:00"
Today's scheduled closing time in 24-hour format (HH:MM), in resort's local timezone.
"16:00"
Images attached to this amenity, ordered for display. Each includes a ThumbHash for rendering a blurred placeholder while the image loads.
Show child attributes
Show child attributes
[
{
"description": "Mid-mountain lodge with full-service restaurant and bar.",
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"name": "Summit Lodge",
"category": "lodge",
"website": "https://example.com/summit-lodge",
"has_operating_hours": true,
"opens_at": "09:00",
"closes_at": "16:00",
"schedules": [],
"images": []
}
]