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.poseidon import poseidon

appkey = 'xxxxx-xxxx-xxxx-xxxx-xxxxxxxx'
appsecret = 'xxxxx-xxxx-xxxx-xxxx-xxxxxx'

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

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

1.2 Header

from poseidon.poseidon import poseidon

appkey = 'xxxxx-xxxx-xxxx-xxxx-xxxxxxxx'
appsecret = 'xxxxx-xxxx-xxxx-xxxx-xxxxxx'

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.poseidon import poseidon

appkey = 'xxxxx-xxxx-xxxx-xxxx-xxxxxxxx'
appsecret = 'xxxxx-xxxx-xxxx-xxxx-xxxxxx'

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

enos-poseidon-0.2.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

enos_poseidon-0.2.0-py2.7.egg (6.1 kB view details)

Uploaded Egg

File details

Details for the file enos-poseidon-0.2.0.tar.gz.

File metadata

  • Download URL: enos-poseidon-0.2.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.8.3 requests/2.27.1 setuptools/44.1.1 requests-toolbelt/0.10.1 tqdm/4.64.1 CPython/2.7.18

File hashes

Hashes for enos-poseidon-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d94e4ac78dc304cef16a59607ac80a5d15f909abbf9b6e09d4e9d8a7b040dc3a
MD5 01c521b1ef8e4caf185aca28d8c49df8
BLAKE2b-256 5b6ea2cfeaec0da5a2e780d992a628e4331fe2c8d452443d632dd17eefbc70d0

See more details on using hashes here.

File details

Details for the file enos_poseidon-0.2.0-py2.7.egg.

File metadata

  • Download URL: enos_poseidon-0.2.0-py2.7.egg
  • Upload date:
  • Size: 6.1 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.8.3 requests/2.27.1 setuptools/44.1.1 requests-toolbelt/0.10.1 tqdm/4.64.1 CPython/2.7.18

File hashes

Hashes for enos_poseidon-0.2.0-py2.7.egg
Algorithm Hash digest
SHA256 140a75c844d3d7cef4d6e4c0db943f394336f58e10e6e74588fc31d7cf957277
MD5 cba82018c076d549bd97798de95f2303
BLAKE2b-256 aefd8cbba2a00c5c2f871660732bf54344071de360c926d5c95e8903c6eac225

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