Ejemplo n.º 1
0
 def cb(data, session_data):
     title = data['video']['translated_title']
     print title
     print "woot woot"
     twilio_sms.send_text('$10.00', title)
     pusher_api.push("You just finished watching %s" % (title,))
     venmo_api.transfer(session_data['venmo_oauth'], session_data['child_venmo_handle'], 10.00,
                        "Reward for watching %s" % (title,))
Ejemplo n.º 2
0
def payout_trigger():
    # do the venmo thing
    venmo_api.transfer(session['venmo']['oauth_token'], session['child_venmo'], 10.0, 'Completed Calculus 1')