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-fork-0.3.0.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for goslide_api_fork-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ffd31f49410e12f021d97fe09216ecb58e2f0c63beb69e5889dbcc07d3dc06d |
|
MD5 | b57f1f11d15d9c4c2c699c281993ac1f |
|
BLAKE2b-256 | e8ed62b34fc39ba6c60fbe27297b4a0e71fb639f72f3e6c2b4eb297d230f26ef |