Skip to main content

zzl test

Project description

Project description

Athena is the core SDK for requesting the EnOS API

Example

1.1 Query

from poseidon import poseidon

appkey = '7b51b354-f200-45a9-a349-40cc97730c5a'
appsecret = '65417473-2da3-40cc-b235-513b9123aefg'

url = 'http://{apim-url}/someservice/v1/tyy?sid=28654780'

req = poseidon.urlopen(appkey, appsecret, url)
print(req)

1.2 Header

from poseidon import poseidon

appkey = '7b51b354-f200-45a9-a349-40cc97730c5a'
appsecret = '65417473-2da3-40cc-b235-513b9123aefg'

url = 'http://{apim-url}/someservice/v1/tyy?sid=28654780'

header={}

req = poseidon.urlopen(appkey, appsecret, url, None, header)
print(req)

1.3 Body

from poseidon import poseidon

appkey = '7b51b354-f200-45a9-a349-40cc97730c5a'
appsecret = '65417473-2da3-40cc-b235-513b9123aefg'

url = 'http://{apim-url}/someservice/v1/tyy?sid=28654780'

data = {"username": "11111", "password": "11111"}

req = poseidon.urlopen(appkey, appsecret, url, data)
print(req)

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

zzltest-0.1.5.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file zzltest-0.1.5.tar.gz.

File metadata

  • Download URL: zzltest-0.1.5.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.6.8

File hashes

Hashes for zzltest-0.1.5.tar.gz
Algorithm Hash digest
SHA256 8655da5d0c79d27fb58382778e4a0eba3ffa214b8e8977cf3fc56c7bf9b5ad3f
MD5 bf68a4d4eccf6ad3855ce94612bf0fcb
BLAKE2b-256 67051b953659c611163e3502f9f0535987aa4a262ade4e159f2b75b8657fe085

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page