Spond provides access to the Spond API
Project description
Spond
Simple library with some example scripts to access data from Spond.
Usage
Rename config.py.sample
to config.py and set your Spond username and password in that file.
Example code
import asyncio
from spond import spond
from config import username, password
async def main():
s = spond.Spond(username=username, password=password)
groups = await s.getGroups()
for group in groups:
print(group['name'])
await s.clientsession.close()
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
Functions
getGroups()
Gets all your group memberships and all members of those groups
getEvents()
Gets all upcoming events
getPerson()
Get information about a member
getMessages()
Get all your messages
sendMessage(receipient, text)
Send a message to receipient
with the content text
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
spond-0.0.3.tar.gz
(15.0 kB
view hashes)
Built Distribution
spond-0.0.3-py3-none-any.whl
(15.3 kB
view hashes)