Dux-Soup remote control API wrapper
Project description
Dux Soup remote control wrapper
Wrapper around Dux Soup remote control API
Documentation
Commands list
Commands alowed bu Dux Soup remote contol:
- visit (visit profile)
- connect (send connection request)
- message (send message)
- wait (pause the robot)
- reset (clear the queue)
- size (size of the queue)
- profile (account information)
- items (list items in queue)
Required params for certain commands
visit
"params": {
"profile": "PROFILE_URL",
}
connect
"params": {
"profile": "PROFILE_URL",
"messagetext": "MESSAGE TEXT"
}
Please check documentation above for more info on messagetext format and additional options
message
"params": {
"messagetext": "MESSAGE TEXT"
}
Please check documentation above for more info on messagetext format and additional options
wait
"params": {
"duration": DURATION_IN_SECONDS,
}
How to use
import json
from duxwrap import DuxWrap
"""create wrapper"""
dux = DuxWrap('API_KEY', 'USER_ID')
print('DuxSoup version:', dux.version)
"""get acount info"""
profile_data = dux.call("profile", {})
print('PROFILE DATA SET')
print(json.dumps(profile_data, indent=4, sort_keys=True))
print('-----------------------------\n\n')
"""pause the robot"""
print('PAUSE RESPONSE')
params = {
"params": {
"duration": 0
}
}
pause_data = dux.call("wait", params)
print(json.dumps(pause_data, indent=4, sort_keys=True))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
duxwrap-0.6.tar.gz
(3.7 kB
view details)
File details
Details for the file duxwrap-0.6.tar.gz
.
File metadata
- Download URL: duxwrap-0.6.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6d061dce37f47bd5cf5688d061509ee07176d34bea579a1bcb7853a15f2a7d9 |
|
MD5 | 0a2872503db0766450471c1b237b50cf |
|
BLAKE2b-256 | c96add272636a4be981a1a0cb848eaa6791a406a7b2a4e898a38e6cb4e6d6b80 |