Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

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

Files for enos-poseidon, version 0.1.6
Filename, size File type Python version Upload date Hashes
Filename, size enos-poseidon-0.1.6.tar.gz (3.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page