()
| 20 | |
| 21 | |
| 22 | def test_me(): |
| 23 | print('* Calling Twitter...') |
| 24 | url = augment('https://api.twitter.com/1.1/statuses/user_timeline.json', |
| 25 | {'screen_name': 'drchuck', 'count': '2'}) |
| 26 | print(url) |
| 27 | connection = urllib.request.urlopen(url) |
| 28 | data = connection.read() |
| 29 | print(data) |
| 30 | headers = dict(connection.getheaders()) |
| 31 | print(headers) |