Alibaba Cloud IotApiGateway SDK Library for Python
Project description
English | 简体中文
Alibaba Cloud IotApiGateway SDK for Python
Installation
- Install with pip
Python SDK uses a common package management tool named pip
. If pip is not installed, see the pip user guide to install pip.
# Install the otApiGateway SDK
pip install alibabacloud_iot_api_gateway
Usage
import os
from alibabacloud_iot_api_gateway.models import Config, IoTApiRequest, CommonParams
from alibabacloud_iot_api_gateway.client import Client
from alibabacloud_tea_util.models import RuntimeOptions
# init client
config = Config(
app_key=os.environ['IOT_APP_KEY'],
app_secret=os.environ['IOT_APP_SECRET'],
domain='api.link.aliyun.com'
)
client = Client(config)
# build request
request = CommonParams(api_ver='1.0.0')
body = IoTApiRequest(
params={'input': 'test'},
request=request
)
# send request
response = client.do_request(
'/kit/debug/ping',
'https',
'POST',
None,
body,
RuntimeOptions()
)
print(response.body)
Issues
Opening an Issue, Issues not conforming to the guidelines may be closed immediately.
Changelog
Detailed changes for each release are documented in the release notes.
References
License
Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
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
File details
Details for the file alibabacloud_iot_api_gateway-0.0.4.tar.gz
.
File metadata
- Download URL: alibabacloud_iot_api_gateway-0.0.4.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05bcb3527ca9ad4228a3a4000bf93c5e63d1172978a67c7f6c10d43737cea5b1 |
|
MD5 | 426e28299be5f766ab300001541abb1d |
|
BLAKE2b-256 | 165cd8e90380b6c79d6410d83dc1af0404f965df8c68f3a0af77ddd289aec55e |