Created
August 4, 2011 18:22
-
-
Save ghermeto/1125838 to your computer and use it in GitHub Desktop.
Using blitz python api client
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
from blitz.sprint import Sprint | |
from blitz.rush import Rush | |
def callback(): | |
print("SUCCESS") | |
def sprint(): | |
options = {'url': "http://your.cool.app"} | |
s = Sprint('[email protected]', 'aqbcdge-sjfkgurti-sjdhgft-skdiues') | |
s.execute(options, callback) | |
def rush(): | |
options = {'url': "http://your.cool.app", | |
'pattern': { 'intervals': [{'start':10, 'end':100, 'duration':30}]}} | |
r = Rush('[email protected]', 'aqbcdge-sjfkgurti-sjdhgft-skdiues') | |
r.execute(options, callback) | |
sprint() | |
rush() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment