@mtnmanager/sdk
v1.7.1
Published
SDK for interacting with the MtnManager API, providing real-time access to your ski resort's public operational data.
Readme
MtnManager TypeScript SDK
SDK for interacting with the MtnManager API, providing real-time access to your ski resort’s public operational data.
For more information, please visit https://docs.mtnmanager.com/developer/
Usage
First, install the SDK from npm.
npm install @mtnmanager/sdk --saveNext, try it out.
import {
Configuration,
MtnManagerApi,
} from '@mtnmanager/sdk';
import type { GetAmenitiesRequest } from '@mtnmanager/sdk';
async function example() {
console.log("🚀 Testing @mtnmanager/sdk SDK...");
const config = new Configuration({
basePath: "https://api.mtnmanager.com",
});
const api = new MtnManagerApi(config);
const body = {
// string | 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. (optional)
acceptLanguage: fr-CA,
} satisfies GetAmenitiesRequest;
try {
const data = await api.getAmenities(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);Documentation
API Endpoints
All URIs are relative to https://your-resort.mtnmanager.com
| Class | Method | HTTP request | Description | ----- | ------ | ------------ | ------------- MtnManagerApi | getAmenities | GET /api/v1/report/amenities | Get amenities MtnManagerApi | getFullReport | GET /api/v1/report | Get full report MtnManagerApi | getHours | GET /api/v1/report/hours | Get operating hours MtnManagerApi | getLifts | GET /api/v1/report/lifts | Get lifts MtnManagerApi | getOverview | GET /api/v1/report/overview | Get overview MtnManagerApi | getParkingLots | GET /api/v1/report/parking-lots | Get parking lots MtnManagerApi | getRuns | GET /api/v1/report/runs | Get runs MtnManagerApi | getSnow | GET /api/v1/report/snow | Get snow conditions MtnManagerApi | getSummerTrails | GET /api/v1/report/summer-trails | Get summer trails MtnManagerApi | getTerrainParks | GET /api/v1/report/terrain-parks | Get terrain parks MtnManagerApi | getTrailMaps | GET /api/v1/report/trail-maps | Get trail maps MtnManagerApi | getWeather | GET /api/v1/report/weather | Get weather MtnManagerApi | getWebcamHistory | GET /api/v1/report/webcam/{uuid}/history | Get webcam history MtnManagerApi | getWebcams | GET /api/v1/report/webcams | Get webcams
Models
- Amenity
- AmenityCalendarEntry
- AmenityCategory
- AmenitySchedule
- CalendarDay
- ClosureReason
- CurrentWeather
- CurrentWeatherImperial
- CurrentWeatherMetric
- DailyForecast
- DailyForecastImperial
- DailyForecastMetric
- DayOfWeek
- EntityImage
- FeatureSize
- FeatureType
- FullReport
- GeoBounds
- GeoPoint
- HourlyForecast
- HourlyForecastImperial
- HourlyForecastMetric
- LabelOffset
- Lift
- LiftStatus
- LiftType
- MarkerIcon
- OperatingHours
- Overview
- OverviewLifts
- OverviewNews
- OverviewRuns
- OverviewSummerTrails
- OverviewTerrainParks
- ParkingLot
- ParkingLotStatus
- PathUuid
- Region
- ResortInfo
- ResortStatus
- Run
- RunDifficulty
- RunStatus
- Schedule
- SeasonType
- SnowMetrics
- SnowReport
- SummerTrail
- SummerTrailDifficulty
- SummerTrailStatus
- SummerTrailType
- SurfaceCondition
- TerrainPark
- TerrainParkFeature
- TerrainParkFeatureStatus
- TerrainParkStatus
- TrailMapElementOneOf
- TrailMapElementOneOf1
- TrailMapElementOneOf2
- TrailMapElementOneOf3
- TrailMapElementOneOf4
- TrailMapElementOneOf5
- TrailMapElementOneOf6
- TrailMapElementOneOf7
- TrailMapSummary
- UnitPreference
- Weather
- WeatherConditionCode
- Webcam
- WebcamHistoryFrame
- WebcamHistoryQuery
- WebcamHistoryResponse
Authorization
Endpoints do not require authorization.
