Skip to main content

ENOS API

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-585d97730c5a'
appsecret = '65417473-2da3-40cc-b235-513b9216bab1'

url = 'http://10.27.20.193:8000/tttttttt/v1/tyy?sid=28654780'

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

1.2 Header

from poseidon import poseidon

appkey = '7b51b354-f200-45a9-a349-585d97730c5a'
appsecret = '65417473-2da3-40cc-b235-513b9216bab1'

url = 'http://10.27.20.193:8000/tttttttt/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-585d97730c5a'
appsecret = '65417473-2da3-40cc-b235-513b9216bab1'

url = 'http://10.27.20.193:8000/tttttttt/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

aphrodite-0.1.4.tar.gz (3.3 kB view details)

Uploaded Source

File details

Details for the file aphrodite-0.1.4.tar.gz.

File metadata

  • Download URL: aphrodite-0.1.4.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.0

File hashes

Hashes for aphrodite-0.1.4.tar.gz
Algorithm Hash digest
SHA256 e6242fecd4c6be6a07f624c79d6112def4851f65ad7fdc5f41e67ba4744c8c5e
MD5 a1b152295189d16c150eaca169ffbed7
BLAKE2b-256 d54854dc7bea1d01c9cfa3046e6bd17b94cc617a2c14a82c85218bd65e1dab8d

See more details on using hashes here.

Supported by

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