Skip to main content

Snøskredvarsel API

Project description

varsom-avalanche-client

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

This Python package is automatically generated by the Swagger Codegen project:

  • API version: v5.0.1
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

If the python package is hosted on Github, you can install directly from Github

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import varsom_avalanche_client 

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import varsom_avalanche_client

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import time
import varsom_avalanche_client
from varsom_avalanche_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = varsom_avalanche_client.ArchiveApi(varsom_avalanche_client.ApiClient(configuration))
langkey = 56 # int | 
startdate = '2013-10-20T19:20:30+01:00' # datetime | 
enddate = '2013-10-20T19:20:30+01:00' # datetime | 
format = 'format_example' # str | 

try:
    api_response = api_instance.archive_all(langkey, startdate, enddate, format)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ArchiveApi->archive_all: %s\n" % e)

# create an instance of the API class
api_instance = varsom_avalanche_client.ArchiveApi(varsom_avalanche_client.ApiClient(configuration))
id = 56 # int | 
langkey = 56 # int | 
startdate = '2013-10-20T19:20:30+01:00' # datetime | 
enddate = '2013-10-20T19:20:30+01:00' # datetime | 
format = 'format_example' # str | 

try:
    api_response = api_instance.archive_region_id(id, langkey, startdate, enddate, format)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ArchiveApi->archive_region_id: %s\n" % e)

# create an instance of the API class
api_instance = varsom_avalanche_client.ArchiveApi(varsom_avalanche_client.ApiClient(configuration))
format = 'format_example' # str | 

try:
    api_response = api_instance.archive_regions(format)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ArchiveApi->archive_regions: %s\n" % e)

# create an instance of the API class
api_instance = varsom_avalanche_client.ArchiveApi(varsom_avalanche_client.ApiClient(configuration))
id = 56 # int | 
langkey = 56 # int | 
format = 'format_example' # str | 

try:
    api_response = api_instance.archive_warning_id(id, langkey, format)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ArchiveApi->archive_warning_id: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://api01.nve.no/hydrology/forecast/avalanche/v5.0.1

Class Method HTTP request Description
ArchiveApi archive_all GET /api/Archive/Warning/All/{langkey}/{startdate}/{enddate}/{format}
ArchiveApi archive_region_id GET /api/Archive/Warning/Region/{id}/{langkey}/{startdate}/{enddate}/{format}
ArchiveApi archive_regions GET /api/Archive/Region/{format}
ArchiveApi archive_warning_id GET /api/Archive/Warning/Id/{id}/{langkey}/{format}
AvalancheWarningByCoordinatesApi avalanche_warning_by_coordinates_detail GET /api/AvalancheWarningByCoordinates/Detail/{x}/{y}/{langkey}/{startdate}/{enddate}
AvalancheWarningByCoordinatesApi avalanche_warning_by_coordinates_obs GET /api/AvalancheWarningByCoordinates/Obs/{x}/{y}/{langkey}/{startdate}/{enddate}
AvalancheWarningByCoordinatesApi avalanche_warning_by_coordinates_simple GET /api/AvalancheWarningByCoordinates/Simple/{x}/{y}/{langkey}/{startdate}/{enddate}
AvalancheWarningByRegionApi avalanche_warning_by_region_detail GET /api/AvalancheWarningByRegion/Detail/{regionid}/{langkey}/{startdate}/{enddate}
AvalancheWarningByRegionApi avalanche_warning_by_region_obs GET /api/AvalancheWarningByRegion/Obs/{regionid}/{langkey}/{startdate}/{enddate}
AvalancheWarningByRegionApi avalanche_warning_by_region_simple GET /api/AvalancheWarningByRegion/Simple/{regionid}/{langkey}/{startdate}/{enddate}
CapApi cap_feed GET /api/Cap/Feed/{startdate}/{enddate}
CapApi cap_id GET /api/Cap/Id/{id}
RegionApi region_all POST /api/Region/{regionTypeId}
RegionApi region_get GET /api/Region/{regionTypeId}
RegionSummaryApi region_summary_detail GET /api/RegionSummary/Detail/{langkey}/{startdate}/{enddate}
RegionSummaryApi region_summary_obs GET /api/RegionSummary/Obs/{langkey}/{startdate}/{enddate}
RegionSummaryApi region_summary_simple GET /api/RegionSummary/Simple/{langkey}/{startdate}/{enddate}
RegionSummaryApi region_summary_summary GET /api/RegionSummary/Summary/{langkey}/{startdate}/{enddate}
WarningApi warning_all GET /api/Warning/All/{langkey}/{startdate}/{enddate}
WarningApi warning_id GET /api/Warning/Id/{id}/{langkey}
WarningApi warning_region GET /api/Warning/Region/{id}/{langkey}/{startdate}/{enddate}

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

varsom-avalanche-client-1.0.0.tar.gz (40.8 kB view hashes)

Uploaded Source

Built Distribution

varsom_avalanche_client-1.0.0-py3-none-any.whl (109.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page