Skip to content

Instantly share code, notes, and snippets.

@lepture
Created October 2, 2010 03:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lepture/607252 to your computer and use it in GitHub Desktop.
Save lepture/607252 to your computer and use it in GitHub Desktop.
import pydouban
@route('/me')
class Profile(WebHandler):
def get(self):
qs = db.Douban.get('qs')
api = pydouban.Api()
api.set_qs_consumer(key, secret, qs)
profile = api.get_profile()
return self.response(profile)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment