@mtnmanager/sdk
v1.2.1
Published
SDK for interacting with the MtnManager API, providing real-time access to your ski resort's public operational data.
Downloads
1,382
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://mtnmanager.com
Usage
First, install the SDK from npm.
npm install @mtnmanager/sdk --saveNext, try it out.
import {
Configuration,
MtnManagerApi,
} from '@mtnmanager/sdk';
import type { GetFullReportRequest } 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);
try {
const data = await api.getFullReport();
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 | 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 | getWeather | GET /api/v1/report/weather | Get weather
Models
- AmenityCalendarEntry
- AmenityCategory
- AmenitySchedule
- CalendarDay
- ClosureReason
- CurrentWeather
- CurrentWeatherImperial
- CurrentWeatherMetric
- DailyForecast
- DailyForecastImperial
- DailyForecastMetric
- DayOfWeek
- FeatureSize
- FeatureType
- FullReport
- HourlyForecast
- HourlyForecastImperial
- HourlyForecastMetric
- Lift
- LiftStatus
- LiftType
- OperatingHours
- Overview
- ParkingLot
- ParkingLotStatus
- Region
- ResortInfo
- ResortStatus
- Run
- RunDifficulty
- RunStatus
- Schedule
- SeasonType
- SnowMetrics
- SnowReport
- SummerTrail
- SummerTrailDifficulty
- SummerTrailStatus
- SummerTrailType
- SurfaceCondition
- TerrainPark
- TerrainParkFeature
- TerrainParkFeatureStatus
- TerrainParkStatus
- UnitPreference
- Weather
- WeatherConditionCode
Authorization
Endpoints do not require authorization.
