开创性的API

varsom-landslide-client的Python项目详细描述


瓦索姆滑坡客户

未提供描述(由Swagger Codegenhttps://github.com/swagger-api/swagger-codegen生成)

此Python包由Swagger Codegen项目自动生成:

  • API版本:v1.0.6
  • 包版本:1.0.0
  • 生成包:io.swagger.codegen.v3版。generators.python.PythonClientCodegen在

要求

Python 2.7和3.4+

安装和使用

pip安装

如果python包托管在Github上,则可以直接从Github安装

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

(您可能需要使用根权限运行pipsudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

然后导入包:

^{pr2}$

设置工具

通过Setuptools安装。在

python setup.py install --user

(或sudo python setup.py install为所有用户安装软件包)

然后导入包:

importvarsom_landslide_client

入门

请按照installation procedure操作,然后运行以下命令:

from__future__importprint_functionimporttimeimportvarsom_landslide_clientfromvarsom_landslide_client.restimportApiExceptionfrompprintimportpprint# create an instance of the API classapi_instance=varsom_landslide_client.CapApi(varsom_landslide_client.ApiClient(configuration))startdate='2013-10-20T19:20:30+01:00'# datetime | enddate='2013-10-20T19:20:30+01:00'# datetime | try:api_response=api_instance.cap_feed(startdate,enddate)pprint(api_response)exceptApiExceptionase:print("Exception when calling CapApi->cap_feed: %s\n"%e)# create an instance of the API classapi_instance=varsom_landslide_client.CapApi(varsom_landslide_client.ApiClient(configuration))id='id_example'# str | try:api_response=api_instance.cap_id(id)pprint(api_response)exceptApiExceptionase:print("Exception when calling CapApi->cap_id: %s\n"%e)

API终结点文档

所有uri都是相对于https://api01.nve.no/hydrology/forecast/landslide/v1.0.6

ClassMethodHTTP requestDescription
CapApicap_feedGET /api/Cap/Feed/{startdate}/{enddate}
CapApicap_idGET /api/Cap/Id/{id}
RegionApiregion_getGET /api/Region/{countyId}
WarningApiwarning_allGET /api/Warning/All/{langkey}/{startdate}/{enddate}
WarningApiwarning_countyGET /api/Warning/County/{county}/{langkey}/{startdate}/{enddate}
WarningApiwarning_getGET /api/Warning/{langkey}/{startdate}/{enddate}
WarningApiwarning_municipalityGET /api/Warning/Municipality/{municipality}/{langkey}/{startdate}/{enddate}

模型文档

授权文件

所有终结点都不需要授权。在

作者

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
orm如何在Java中实现规范化映射?   java以编程方式修改Xtext生成的Mwe2工作流   java正在覆盖外部文件中的现有数据,如何停止?   java在ANTLR BNF语法符号中epsilon的等价物是什么?   java如何使用Hibernate@Anyrelated注释?   代码生成生成java类并在运行时加载它   java Maven无法在本地jar文件中收集依赖项   java NetBeans IDE 8.2不显示错误消息   java Selenium web驱动程序找不到元素   java如何修复“拒绝访问属性”invoke“”的权限?   JavaApacheJClouds,从比日期更早的blob中删除blob的最佳方法   java如何比较和排序树集中的项目?   使用JavaSpring和无头/解耦CMS   java使用swagercodegen在不同的类中生成端点   Java外部Keylistener没有响应