HeySummit API Client
Project description
Hey Summit API is a requests based client to the Hey Summit API.
Free software: Apache 2.0 License
Documentation: https://api-docs.heysummit.com/#introduction
Features
All features from the HeySummit API are implemented. Sadly the API seems unversioned at this point so I cannot guarantee stability.
Examples
The only required argument is the HeySummit API token.
This is an example usage:
import argparse from heysummit.api import HeySummit, HeySummitException def list_attendees(): attendees = hey.get_all_attendees() print("There are {n} attendees".format(len(attendees))) for attendee in attendees: print("id: {id}, email: {email}".format( id=attendee['id'], email=attendee['email'] ) ) def get_events(): events = hey.get_events(is_live=True) for event in events: print(event) # main # Parse Arguments parser = argparse.ArgumentParser(description='HeySummit interaction script.') parser.add_argument('-t', '--token', type=str, help='API Token. Example: jdoe.', required=True) args = parser.parse_args() hey = HeySummit(token=args.token) print(hey.get_all_attendees(event=5573)) talks = hey.get_talks(event=5573, is_active=True) for talk in talks: print(talk)
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
heysummit-0.1.1.tar.gz
(5.7 kB
view hashes)
Built Distribution
Close
Hashes for heysummit-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44212fac589943889430c0ab9d35f94ad9f7c4b9866eca667a05df012b8268d7 |
|
MD5 | 79c6033db19df91b3afd9774cf315251 |
|
BLAKE2b-256 | a447e2653c53d9b55febed61c4ab76eced50d20b001dcf32e0e099eb711b5e5b |