Skip to main content

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

Apache-2.0

Copyright (c) 2009-present, Alibaba Cloud All rights reserved.

Metadata

Release files for alibabacloud-iot-api-gateway 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for alibabacloud-iot-api-gateway 0.0.4
File Size Uploaded
alibabacloud_iot_api_gateway-0.0.4.tar.gz 5.8 kB Details

Release files / alibabacloud_iot_api_gateway-0.0.4.tar.gz

Download URL alibabacloud_iot_api_gateway-0.0.4.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
05bcb3527ca9ad4228a3a4000bf93c5e63d1172978a67c7f6c10d43737cea5b1
BLAKE2b-256 checksum
How to use checksums
165cd8e90380b6c79d6410d83dc1af0404f965df8c68f3a0af77ddd289aec55e
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.4 This release

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page