import { MtnManagerApi, Configuration } from "@mtnmanager/sdk";
const api = new MtnManagerApi(
new Configuration({
basePath: "https://your-resort.mtnmanager.com",
})
);
try {
const data = await api.getWebcams();
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.GetWebcams(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->getWebcams();
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.getWebcams(apiConfiguration: config)
print(data)
} catch {
print("Error: \(error)")
}curl --request GET \
--url https://{subdomain}.mtnmanager.com/api/v1/report/webcamsimport requests
url = "https://{subdomain}.mtnmanager.com/api/v1/report/webcams"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://{subdomain}.mtnmanager.com/api/v1/report/webcams', 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/webcams")
.asString();require 'uri'
require 'net/http'
url = URI("https://{subdomain}.mtnmanager.com/api/v1/report/webcams")
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": "11111111-1111-1111-1111-111111111111",
"name": "Summit",
"latest_image_url": "https://powder-mountain.mtnmanager.net/webcam/cam/latest.webp",
"latest_daylight_image_url": "https://powder-mountain.mtnmanager.net/webcam/cam/latest-daylight.webp",
"latest_thumb_url": "https://powder-mountain.mtnmanager.net/webcam/cam/latest-thumb.webp",
"latest_daylight_thumb_url": "https://powder-mountain.mtnmanager.net/webcam/cam/latest-daylight-thumb.webp",
"latest_thumbhash": "NAgCBIDnF9d4iHh/cYgAAAAAAA==",
"latest_daylight_thumbhash": "NAgCBIDnF9d4iHh/cYgAAAAAAA==",
"has_history": true,
"elevation_ft": 10800,
"elevation_m": 3292
}
]Get Webcams
import { MtnManagerApi, Configuration } from "@mtnmanager/sdk";
const api = new MtnManagerApi(
new Configuration({
basePath: "https://your-resort.mtnmanager.com",
})
);
try {
const data = await api.getWebcams();
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.GetWebcams(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->getWebcams();
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.getWebcams(apiConfiguration: config)
print(data)
} catch {
print("Error: \(error)")
}curl --request GET \
--url https://{subdomain}.mtnmanager.com/api/v1/report/webcamsimport requests
url = "https://{subdomain}.mtnmanager.com/api/v1/report/webcams"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://{subdomain}.mtnmanager.com/api/v1/report/webcams', 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/webcams")
.asString();require 'uri'
require 'net/http'
url = URI("https://{subdomain}.mtnmanager.com/api/v1/report/webcams")
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": "11111111-1111-1111-1111-111111111111",
"name": "Summit",
"latest_image_url": "https://powder-mountain.mtnmanager.net/webcam/cam/latest.webp",
"latest_daylight_image_url": "https://powder-mountain.mtnmanager.net/webcam/cam/latest-daylight.webp",
"latest_thumb_url": "https://powder-mountain.mtnmanager.net/webcam/cam/latest-thumb.webp",
"latest_daylight_thumb_url": "https://powder-mountain.mtnmanager.net/webcam/cam/latest-daylight-thumb.webp",
"latest_thumbhash": "NAgCBIDnF9d4iHh/cYgAAAAAAA==",
"latest_daylight_thumbhash": "NAgCBIDnF9d4iHh/cYgAAAAAAA==",
"has_history": true,
"elevation_ft": 10800,
"elevation_m": 3292
}
]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
URL of the newest frame (refreshes within ~60s via the edge cache).
URL of the last daylight frame.
ThumbHash of the latest frame (standard base64) — a compact blur
placeholder to render while the image loads. Empty string until the first
frame (or on cameras predating the feature).
ThumbHash of the latest-daylight frame (standard base64). Empty string
until the first daylight frame.
Whether this camera archives frames — i.e. whether its history endpoint
returns anything. When false, don't call the history API for it.
Camera elevation in both units; omitted when unset.
Time of the most recently published frame; omitted until the first frame.