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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file varsom-avalanche-client-1.0.0.tar.gz.

File metadata

  • Download URL: varsom-avalanche-client-1.0.0.tar.gz
  • Upload date:
  • Size: 40.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for varsom-avalanche-client-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9aa98ffe10708f5d6760c658e08a75c7acec5f23970b149d0401b7ee24dde13b
MD5 863ca558f16ea60fc467cae6259f25a1
BLAKE2b-256 beae175ac8f8a982c296ddc0fc5bf25d6c0e88337748b4048490d3cc16ddd158

See more details on using hashes here.

File details

Details for the file varsom_avalanche_client-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: varsom_avalanche_client-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 109.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for varsom_avalanche_client-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 73533a58c121da78d761b5959069f7ab1aebb1ad741f9d974190947722bfd207
MD5 1c146097cb98634c4c75194bc1c5770e
BLAKE2b-256 ef69e875c30f903f02fe9faa361cfc43f52065e6576c720241f6867806faf46b

See more details on using hashes here.

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