Skip to content

Instantly share code, notes, and snippets.

@tdfischer
Created January 12, 2019 02:31
Show Gist options
  • Save tdfischer/e3833a58a11f24e1ae5be7c3638eb0a3 to your computer and use it in GitHub Desktop.
Save tdfischer/e3833a58a11f24e1ae5be7c3638eb0a3 to your computer and use it in GitHub Desktop.
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': 'donate@noisebridge.net',
'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