README
Installation
- install with
piptool.
# install alibabacloud_fc_open20210406
pip install -U alibabacloud_fc_open20210406
Usage
- Invoke HTTP Trigger
# -*- coding: utf-8 -*-
import os
from alibabacloud_fc_open20210406.client import Client
from alibabacloud_tea_openapi import models as open_api_models
ak = os.getenv('ak')
sk = os.getenv('sk')
url = os.getenv('url')
client = Client(config=open_api_models.Config(access_key_id=ak,
access_key_secret=sk,
region_id='cn-hangzhou'))
resp = client.invoke_httptrigger(url=url,
method="GET",
body="anything".encode(encoding='utf-8'),
headers={"k1": "v1", "k2": "v2"})
- Invoke Anonymous HTTP Trigger
import os
from alibabacloud_fc_open20210406.client import Client
from alibabacloud_tea_openapi import models as open_api_models
ak = os.getenv('ak')
sk = os.getenv('sk')
url = os.getenv('url')
client = Client(config=open_api_models.Config(access_key_id=ak,
access_key_secret=sk,
region_id='cn-hangzhou'))
resp = client.invoke_anonymous_httptrigger(url=url,
method="GET",
body="anything".encode(encoding='utf-8'),
headers={"k1": "v1", "k2": "v2"})
- Integration with your own http_client
import requests
import os
from alibabacloud_fc_open20210406.client import Client
from alibabacloud_tea_openapi import models as open_api_models
ak = os.getenv('ak')
sk = os.getenv('sk')
url = os.getenv('url')
client = Client(config=open_api_models.Config(access_key_id=ak,
access_key_secret=sk,
region_id='cn-hangzhou'))
# build your own request
req = requests.Request(
url=url,
method='GET'
)
req = client.sign_request(req)
with requests.Session() as s:
prep=s.prepare_request(req)
resp = s.send(prep)
Metadata
Release files for alibabacloud-gateway-fc-util 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| alibabacloud_gateway_fc_util-0.0.5.tar.gz | 4.5 kB | Without provenance | Details for alibabacloud_gateway_fc_util-0.0.5.tar.gz |
Release files / alibabacloud_gateway_fc_util-0.0.5.tar.gz
| Download URL | alibabacloud_gateway_fc_util-0.0.5.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
686b64776179d08828f9a2ea802f88552c15d5761fb145bf7ad1aeb3bdb1ba58
|
|
BLAKE2b-256 checksum How to use checksums |
88d47b05bc4e100b3019dff6195e3b28d8f38770e58388666ae1dc86991a172a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Security for alibabacloud-gateway-fc-util 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.