Skip to main content

HeySummit API Client

Project description

https://img.shields.io/pypi/v/heysummit.svg https://img.shields.io/travis/fzipi/heysummit.svg 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.1.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

heysummit-0.1.1-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file heysummit-0.1.1.tar.gz.

File metadata

  • Download URL: heysummit-0.1.1.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.8.3 Linux/5.6.8-300.fc32.x86_64

File hashes

Hashes for heysummit-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3c30798c3bd531a683b15613f911e7afc0db89c2ca3ede2eb9ed643859e3fb92
MD5 c3ff97ff1acc33751e3f19aee3457f38
BLAKE2b-256 21477269e64cffe22896f2df3c689ce26000d84880074afe2d32ebbdfb1cf57f

See more details on using hashes here.

File details

Details for the file heysummit-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: heysummit-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.8.3 Linux/5.6.8-300.fc32.x86_64

File hashes

Hashes for heysummit-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 44212fac589943889430c0ab9d35f94ad9f7c4b9866eca667a05df012b8268d7
MD5 79c6033db19df91b3afd9774cf315251
BLAKE2b-256 a447e2653c53d9b55febed61c4ab76eced50d20b001dcf32e0e099eb711b5e5b

See more details on using hashes here.

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