Created
January 12, 2019 02:31
-
-
Save tdfischer/e3833a58a11f24e1ae5be7c3638eb0a3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import requests | |
import json | |
import pytz | |
import random | |
from datetime import datetime | |
LGL_URL = 'https://noisebridgehackerspace.littlegreenlight.com/integrations/990fe4c4-5817-4cd3-b563-b77df3390138/listener' | |
data = { | |
'first_name': 'Test', | |
'last_name': 'McTesterson', | |
'amount': '2600.42', | |
'email': '[email protected]', | |
'date': datetime.now().replace(tzinfo=pytz.utc).isoformat(), | |
'txn_id': 'test-%d'%(random.randint(0, 2600)) | |
} | |
requests.post(LGL_URL, data=data) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment