Skip to content

Commit

Permalink
Merge pull request #33 from elliot-100/v0.9.0-doc-fixes
Browse files Browse the repository at this point in the history
v0.9.0 doc fixes
  • Loading branch information
Olen authored Oct 7, 2022
2 parents 5513247 + b21f802 commit 57fdd1a
Showing 1 changed file with 13 additions and 33 deletions.
46 changes: 13 additions & 33 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Spond
![spond logo](https://github.com/Olen/Spond/blob/main/images/spond-logo.png?raw=true)

Simple library with some example scripts to access data from Spond.
Simple, unofficial library with some example scripts to access data from the [Spond](https://spond.com/) API.

## Install

Expand Down Expand Up @@ -35,45 +35,25 @@ loop.run_until_complete(main())
```

## Functions
## Key methods

### get_groups()
Gets all your group memberships and all members of those groups

### get_events([from_date])
Gets up to 100 events.

Optional `from_date` parameter determines the earliest date from which events are returned.
Pass a `datetime` to get earlier events, e.g.:
```
events = await spond_session.get_events(datetime.now() - timedelta(days=365))
```
If omitted, returns events from today - 14 days.


### get_events_between(from_date, to_date)
Gets up to 100 events.

Required `from_date` and `to_date` parameters determines the earliest and latest date from which events are returned.
Both expect a `datetime` object, e.g.:
```
from_date = datetime.now() - timedelta(days=30)
to_date = datetime.now() + timedelta(days=30)
events = await spond_session.get_events_between(from_date, to_date)
```
Will return _up to_ 100 events starting from 30 days in the past until 30 days in the future.

Get details of all your group memberships and all members of those groups.

### get_events([group_id, include_scheduled, max_end, min_end, max_start, min_start, max_events])
)
Get details of events, limited to 100 by default.
Optional parameters allow filtering by start and end datetimes, group; more events to be returned; inclusion of 'scheduled' events.

### getPerson()
Get information about a member
### get_person()
Get a member's details.

### getMessages()
Get all your messages
### get_messages()
Get all your messages.

### sendMessage(recipient, text)
Send a message to `recipient` with the content `text`
### send_message(recipient, text)
Send a message to `recipient` with the content `text`.

## Example scripts

Expand Down

0 comments on commit 57fdd1a

Please sign in to comment.