Skip to main content

HeySummit API Client

Project description

https://img.shields.io/pypi/v/heysummit.svg https://img.shields.io/github/workflow/status/fzipi/hey-summit/CI Documentation Status Updates

Hey Summit API is a requests based client to the Hey Summit API.

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.4.tar.gz (5.7 kB view hashes)

Uploaded Source

Built Distribution

heysummit-0.1.4-py3-none-any.whl (5.7 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