/happn

Python module for interacting with the Happn's REST API

Primary LanguagePythonMIT LicenseMIT

#Happn API Python Module A module for interacting with Happn's REST API.

##Installation

Download the source and run:

	python setup.py install

##What is included

	\happn 	- Source
	\docs	- Documentation of functions
	\bin	- Prebuilt scripts using python Happn API
        setHappnPosition.py - Script for setting user position
	\examples - exmaple implementations	

##Getting Started First you need a facebook token to create a Happn User-Object. You can get the one associated with your facebook account by clicking here and copying it from the address bar.

import happn
import pprint #For dictionary printing

token = <your facebook token>

# Generate the Happn User object
myUser = happn.User(token)

# Get user info of a specific user
targetUserDict = myUser.get_user_info(<target user id>)
pprint.pprint(targetUserDict)

# Set user position
myUser = myUser.set_position(20.0477203,-156.5052441) #Hawaii lat/lon

####Using the Scripts

####Using the API

##ToDo

  • Easier Setting Configuration
  • Decouple my settings, add to gitignore (decouple package)
  • Unimplemented API Calls
    • Liking a User
    • Charming a User
    • Send a message
    • Get conversations
    • Get messages
  • Add Scripts
    • Scripts not yet working
  • Test Sybil Locator