Skip to main content

Spond provides access to the Spond API

Project description

Spond

spond logo

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


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)

Uploaded Source

Built Distribution

spond-0.0.3-py3-none-any.whl (15.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page