# arlas-subscriptions-manager-api-python
Manage ARLAS subscriptions on ARLAS collections' events.
This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
- API version: 11.0.0
- Package version: 1.0.0
- Build package: io.swagger.codegen.languages.PythonClientCodegen
For more information, please visit [https://arlas.io/](https://arlas.io/)
## 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
```sh
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:
```python
import arlas_subscriptions_manager_api_python
```
### Setuptools
Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
```sh
python setup.py install --user
```
(or `sudo python setup.py install` to install the package for all users)
Then import the package:
```python
import arlas_subscriptions_manager_api_python
```
## Getting Started
Please follow the [installation procedure](#installation--usage) and then run the following:
```python
from __future__ import print_function
import time
import arlas_subscriptions_manager_api_python
from arlas_subscriptions_manager_api_python.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = arlas_subscriptions_manager_api_python.AdminApi()
id = 'id_example' # str | Subscription ID to delete
pretty = false # bool | Pretty print (optional) (default to false)
try:
# Delete a subscription
api_response = api_instance.delete(id, pretty=pretty)
pprint(api_response)
except ApiException as e:
print("Exception when calling AdminApi->delete: %s\n" % e)
```
## Documentation for API Endpoints
All URIs are relative to *http://localhost/arlas-subscriptions-manager*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*AdminApi* | [**delete**](docs/AdminApi.md#delete) | **DELETE** /admin/subscriptions/{id} | Delete a subscription
*AdminApi* | [**get**](docs/AdminApi.md#get) | **GET** /admin/subscriptions/{id} | Find subscription by ID
*AdminApi* | [**get_all**](docs/AdminApi.md#get_all) | **GET** /admin/subscriptions | List all available subscriptions
*AdminApi* | [**post**](docs/AdminApi.md#post) | **POST** /admin/subscriptions | Register a new subscription
*AdminApi* | [**put**](docs/AdminApi.md#put) | **PUT** /admin/subscriptions/{id} | Update an existing subscription
*EnduserApi* | [**delete1**](docs/EnduserApi.md#delete1) | **DELETE** /subscriptions/{id} | Delete a subscription
*EnduserApi* | [**get1**](docs/EnduserApi.md#get1) | **GET** /subscriptions/{id} | Find subscription by ID
*EnduserApi* | [**get_all1**](docs/EnduserApi.md#get_all1) | **GET** /subscriptions | List all available subscriptions
*EnduserApi* | [**post1**](docs/EnduserApi.md#post1) | **POST** /subscriptions | Register a new subscription
*EnduserApi* | [**put1**](docs/EnduserApi.md#put1) | **PUT** /subscriptions/{id} | Update an existing subscription
## Documentation For Models
- [Error](docs/Error.md)
- [Hits](docs/Hits.md)
- [Link](docs/Link.md)
- [Subscription](docs/Subscription.md)
- [SubscriptionListResource](docs/SubscriptionListResource.md)
- [UserSubscription](docs/UserSubscription.md)
- [UserSubscriptionWithLinks](docs/UserSubscriptionWithLinks.md)
## Documentation For Authorization
All endpoints do not require authorization.
## Author
contact@gisaia.com
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
资源分类:Python库 所属语言:Python 资源全名:arlas-subscriptions-manager_api-11.0.0.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源推荐
资源详情
资源评论
收起资源包目录
arlas-subscriptions-manager_api-11.0.0.tar.gz (34个子文件)
arlas-subscriptions-manager_api-11.0.0
PKG-INFO 376B
arlas_subscriptions_manager_api_python
models
subscription_list_resource.py 5KB
hits.py 4KB
link.py 5KB
user_subscription_with_links.py 12KB
__init__.py 626B
subscription.py 4KB
user_subscription.py 11KB
error.py 4KB
configuration.py 7KB
__init__.py 912B
apis
__init__.py 139B
enduser_api.py 25KB
admin_api.py 27KB
api_client.py 24KB
rest.py 13KB
test
test_hits.py 948B
test_user_subscription.py 1KB
test_admin_api.py 1KB
test_subscription_list_resource.py 1KB
test_link.py 948B
__init__.py 0B
test_user_subscription_with_links.py 1KB
test_error.py 956B
test_subscription.py 1012B
test_enduser_api.py 1KB
setup.cfg 38B
setup.py 1KB
README.md 4KB
arlas_subscriptions_manager_api.egg-info
PKG-INFO 376B
requires.txt 48B
SOURCES.txt 1KB
top_level.txt 44B
dependency_links.txt 1B
共 34 条
- 1
资源评论
挣扎的蓝藻
- 粉丝: 14w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功