Skip to content

Instantly share code, notes, and snippets.

@soandos
Last active August 29, 2015 14:02
Show Gist options
  • Save soandos/93f5c3cbb6eea98087e4 to your computer and use it in GitHub Desktop.
Save soandos/93f5c3cbb6eea98087e4 to your computer and use it in GitHub Desktop.
import requests
req = {'limit' : 100,
'start_time': '2012-06-12T010:30-5:00',
'include_profile' : 'false',
'end_time': '2014-06-13T10:30-5:00',
'page': PAGE_NUM}
r=requests.get(r'https://secure.mcommons.com/api/messages',auth=('USERNAME','PASSWORD'),data=req)
print r.text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment