Skip to content

Instantly share code, notes, and snippets.

@ghermeto
Created August 4, 2011 18:22
Show Gist options
  • Save ghermeto/1125838 to your computer and use it in GitHub Desktop.
Save ghermeto/1125838 to your computer and use it in GitHub Desktop.
Using blitz python api client
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