A Python library for Ptch (http://ptch.com)
Currently features a single class PtchUser with the following features:
- logging in
- logging out
- registering
- following users by ID (async)
- setting profile thumbnail (async)
- retrieving user info (async)
import pyptch
To log in:
loginuser = pyptch.PtchUser('username', 'password')
To register:
registeruser = pyptch.PtchUser.register(full_name = "name", signup_email = "email", signup_password = "password")
optional parameters are invitation_email and invitation_code
To follow user with ID 99999:
loginuser.follow(99999)
To set user's thumbnail to an image file:
loginuser.set_thumbnail(file)
To set the user's thumbnail to an image URL:
loginuser.set_thumbnail('url')