Skip to content

Instantly share code, notes, and snippets.

@photofroggy
Created December 6, 2011 15:17
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 photofroggy/1438536 to your computer and use it in GitHub Desktop.
Save photofroggy/1438536 to your computer and use it in GitHub Desktop.
''' Example usage of oAuth objects.
Created by photofroggy.
'''
import os
import sys
from twisted.internet import reactor
sys.path.insert(0, os.curdir)
from dAmnViper.dA import oauth
def stop(response):
print 'ok so yeah'
reactor.stop()
return response
client = oauth.oAuthClient(reactor, 80)
client.serve().addCallback(stop)
reactor.run()
# EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment