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.1.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for aphrodite-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69478ea02ee8207f1f636dd1d836870dfd71e9ae9ec4afe1d6b14ad35654e553 |
|
MD5 | de96d7bc70e2305b08333f0cca8dfc9f |
|
BLAKE2b-256 | fbcb474b56a7cb18d370aa63116e81d20c6ce23e8a7635eb24af361512ad960c |