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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file goslide-api-fork-0.3.0.tar.gz.
File metadata
- Download URL: goslide-api-fork-0.3.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12637e91320f6e22c60fcaa54790a73be80b49b0e597615e0d794833479ce0d7
|
|
| MD5 |
b9cbf2c2369f50c2abd571121270b38e
|
|
| BLAKE2b-256 |
36c68b4b18742c8e918856991079c22c0bf8f190b803491d73fb45b4e972071b
|
File details
Details for the file goslide_api_fork-0.3.0-py3-none-any.whl.
File metadata
- Download URL: goslide_api_fork-0.3.0-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ffd31f49410e12f021d97fe09216ecb58e2f0c63beb69e5889dbcc07d3dc06d
|
|
| MD5 |
b57f1f11d15d9c4c2c699c281993ac1f
|
|
| BLAKE2b-256 |
e8ed62b34fc39ba6c60fbe27297b4a0e71fb639f72f3e6c2b4eb297d230f26ef
|