Created
December 6, 2011 15:17
-
-
Save photofroggy/1438536 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' 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