forked from tripit/python_binding_v1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
22 lines (15 loc) · 714 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
TripIt API Bindings - Python
============================
[API Documentation http://tripit.github.com/api/] (http://tripit.github.com/api/)
Example
=======
import tripit
consumer_key = '5dbf348aa966c5f7f07e8ce2ba5e7a3badc234bc'
consumer_secret = 'fceb3aedb960374e74f559caeabab3562efe97b4'
authorized_token_key = 'df919acd38722bc0bd553651c80674fab2b46508'
authorized_token_secret = '1370adbe858f9d726a43211afea2b2d9928ed878'
oauth_credential = tripit.OAuthConsumerCredential(consumer_key, consumer_secret, authorized_token_key, authorized_token_secret)
t = tripit.TripIt(oauth_credential)
# Lists the authenticated user's upcoming trips
t.list_trip()
print t.response