TypeScript
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",
"slug": "summit-lodge",
"description": "Mid-mountain lodge with full-service restaurant and bar.",
"category": "lodge",
"website": "https://example.com/summit-lodge",
"status": "open",
"has_operating_hours": true,
"opens_at": "09:00",
"closes_at": "16:00",
"schedules": [],
"images": []
}
]API Endpoints
Get Amenities
GET
/
api
/
v1
/
report
/
amenities
TypeScript
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",
"slug": "summit-lodge",
"description": "Mid-mountain lodge with full-service restaurant and bar.",
"category": "lodge",
"website": "https://example.com/summit-lodge",
"status": "open",
"has_operating_hours": true,
"opens_at": "09:00",
"closes_at": "16:00",
"schedules": [],
"images": []
}
]Headers
Response
List of all configured amenities at the resort
Example:
[
{
"description": "Mid-mountain lodge with full-service restaurant and bar.",
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"name": "Summit Lodge",
"slug": "summit-lodge",
"category": "lodge",
"website": "https://example.com/summit-lodge",
"status": "open",
"has_operating_hours": true,
"opens_at": "09:00",
"closes_at": "16:00",
"schedules": [],
"images": []
}
]