Python API to utilise the goslide.io Open Cloud API
Project description
GoSlide Open Cloud API
Python API to utilise the GoSlide Open Cloud JSON API
Requirements
- Python >= 3.5.2
Usage
import asyncio
from goslideapi import GoSlideCloud
loop = asyncio.get_event_loop()
goslide = GoSlideCloud('email', 'password')
login = loop.run_until_complete(goslide.login())
if login:
# Get the slide list
slides = loop.run_until_complete(goslide.slidesoverview())
if slides:
for slidedev in slides:
print(slidedev['device_id'], slidedev['device_name'])
print(' ', slidedev['device_info']['pos'])
else:
print('Something went wrong while retrieving the slide information')
# Open slide with id 1
result = loop.run_until_complete(goslide.slideopen(1))
if result:
print('Succesfully opened slide 1')
else:
print('Failed opened slide 1')
# Close slide with id 1
result = loop.run_until_complete(goslide.slideclose(1))
loop.run_until_complete(goslide.logout())
else:
print('login failed')
TODO
- Test with a real slide (awaiting delivery ;-))
- Expose more API functions
License
Apache License 2.0
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
goslide-api-0.2.1.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for goslide_api-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 765394ab1f0531c5458675254b379306ba214c96338dd3b207db63d3b458c64a |
|
MD5 | cb3d416c6300a2d47f832ba983fbdb82 |
|
BLAKE2b-256 | 8276b04de9d36b1db0c629300d42a6a360771ecea54929d3e663fc09cb614346 |