Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 911 Bytes

README.md

File metadata and controls

42 lines (32 loc) · 911 Bytes

YoPy

A simple Yo! API for python.

As of now, you can:

  1. Get the number of subscribers
  2. Send a Yo! to all subscribers
  3. Send a Yo! to a specific user

YoPy requires a Yo! API access token. You can get one by registering at http://dev.justyo.co/

Dependencies

This version of YoPy is designed to work within Google App Engine

Installation

To install, simple copy yopy.py to the Lib folder of your Python installation.

Usage

YoPy works with Python as supported by Google App Engine
Here is a Python 2 example :

import yopy

token = <your_api_token>
username = "PARTHDHAR"
link = "https://github.com/espice/YoPy"
location = "37.864849,-119.538361"

yo = yopy.Yo(token)
print yo.number()
yo.yo_all(link)
yo.yo_user(username, link=link)
yo.yo_user(username, location=location)

Parth Dhar
2014