import { MtnManagerApi, Configuration } from "@mtnmanager/sdk";
const api = new MtnManagerApi(
new Configuration({
basePath: "https://your-resort.mtnmanager.com",
})
);
try {
const data = await api.getHours();
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.GetHours(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->getHours();
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.getHours(apiConfiguration: config)
print(data)
} catch {
print("Error: \(error)")
}curl --request GET \
--url https://{subdomain}.mtnmanager.com/api/v1/report/hoursimport requests
url = "https://{subdomain}.mtnmanager.com/api/v1/report/hours"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://{subdomain}.mtnmanager.com/api/v1/report/hours', 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/hours")
.asString();require 'uri'
require 'net/http'
url = URI("https://{subdomain}.mtnmanager.com/api/v1/report/hours")
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{
"schedules": [
{
"days_string": "Saturday & Sunday",
"days_of_week": [
"Sunday",
"Saturday"
],
"time_string": "9:00 AM to 4:00 PM",
"opens_at": "09:00",
"closes_at": "16:00",
"in_effect": true,
"effective_string": "November 1, 2024 to April 15, 2025",
"effective_from": "2024-11-01",
"effective_to": "2025-04-15"
}
],
"calendar_days": [
{
"date": "2024-12-25",
"day_of_week": "Wednesday",
"is_open": true,
"opens_at": "09:00",
"closes_at": "16:00",
"amenities": [
{
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Tube Park",
"category": "tubing",
"opens_at": "10:00",
"closes_at": "16:00"
}
]
}
],
"amenity_schedules": [
{
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Tube Park",
"category": "tubing",
"schedules": [
{
"days_string": "Saturday & Sunday",
"days_of_week": [
"Sunday",
"Saturday"
],
"time_string": "9:00 AM to 4:00 PM",
"opens_at": "09:00",
"closes_at": "16:00",
"in_effect": true,
"effective_string": "November 1, 2024 to April 15, 2025",
"effective_from": "2024-11-01",
"effective_to": "2025-04-15"
}
]
}
]
}Get Operating Hours
import { MtnManagerApi, Configuration } from "@mtnmanager/sdk";
const api = new MtnManagerApi(
new Configuration({
basePath: "https://your-resort.mtnmanager.com",
})
);
try {
const data = await api.getHours();
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.GetHours(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->getHours();
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.getHours(apiConfiguration: config)
print(data)
} catch {
print("Error: \(error)")
}curl --request GET \
--url https://{subdomain}.mtnmanager.com/api/v1/report/hoursimport requests
url = "https://{subdomain}.mtnmanager.com/api/v1/report/hours"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://{subdomain}.mtnmanager.com/api/v1/report/hours', 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/hours")
.asString();require 'uri'
require 'net/http'
url = URI("https://{subdomain}.mtnmanager.com/api/v1/report/hours")
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{
"schedules": [
{
"days_string": "Saturday & Sunday",
"days_of_week": [
"Sunday",
"Saturday"
],
"time_string": "9:00 AM to 4:00 PM",
"opens_at": "09:00",
"closes_at": "16:00",
"in_effect": true,
"effective_string": "November 1, 2024 to April 15, 2025",
"effective_from": "2024-11-01",
"effective_to": "2025-04-15"
}
],
"calendar_days": [
{
"date": "2024-12-25",
"day_of_week": "Wednesday",
"is_open": true,
"opens_at": "09:00",
"closes_at": "16:00",
"amenities": [
{
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Tube Park",
"category": "tubing",
"opens_at": "10:00",
"closes_at": "16:00"
}
]
}
],
"amenity_schedules": [
{
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Tube Park",
"category": "tubing",
"schedules": [
{
"days_string": "Saturday & Sunday",
"days_of_week": [
"Sunday",
"Saturday"
],
"time_string": "9:00 AM to 4:00 PM",
"opens_at": "09:00",
"closes_at": "16:00",
"in_effect": true,
"effective_string": "November 1, 2024 to April 15, 2025",
"effective_from": "2024-11-01",
"effective_to": "2025-04-15"
}
]
}
]
}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
Resort's operating hours, including the recurring schedule, and list of individual calendar days.
Recurring operating schedules currently in effect or upcoming. Excludes single-day overrides and past schedules.
Show child attributes
Show child attributes
List of all days the resort is open (or a closure override). Ordered chronologically, spanning from the earliest scheduled date to the latest scheduled date in the currently defined operating hours.
Show child attributes
Show child attributes
Per-amenity operating schedules. Only included when amenity hours are configured.
Show child attributes
Show child attributes