Joe Gregorio | c4fc095 | 2011-11-09 12:21:11 -0500 | [diff] [blame] | 1 | This is python client library for Google's discovery based APIs. |
Joe Gregorio | 48d361f | 2010-08-18 13:19:21 -0400 | [diff] [blame] | 2 | |
Joe Gregorio | 8097e2a | 2011-05-17 11:11:34 -0400 | [diff] [blame] | 3 | |
Joe Gregorio | 48d361f | 2010-08-18 13:19:21 -0400 | [diff] [blame] | 4 | Installation |
| 5 | ============ |
| 6 | |
Tom Miller | 7c95d81 | 2010-10-11 11:50:52 -0700 | [diff] [blame] | 7 | To install, simply say |
Joe Gregorio | 48d361f | 2010-08-18 13:19:21 -0400 | [diff] [blame] | 8 | |
Joe Gregorio | 205a061 | 2011-12-14 11:38:16 -0500 | [diff] [blame] | 9 | $ easy_install --upgrade google-api-python-client |
Tom Miller | 7c95d81 | 2010-10-11 11:50:52 -0700 | [diff] [blame] | 10 | |
Tom Miller | 7c95d81 | 2010-10-11 11:50:52 -0700 | [diff] [blame] | 11 | |
Joe Gregorio | 48d361f | 2010-08-18 13:19:21 -0400 | [diff] [blame] | 12 | Running |
| 13 | ======= |
| 14 | |
Joe Gregorio | 8097e2a | 2011-05-17 11:11:34 -0400 | [diff] [blame] | 15 | After following the install directions (using setup.py or setpath.sh) you |
Joe Gregorio | c4fc095 | 2011-11-09 12:21:11 -0500 | [diff] [blame] | 16 | should be able to cd to samples/plus and run plus.py from there, which will use |
| 17 | the apiclient library to retrieve a snippet of text from each entry in Google |
| 18 | Plus. The first time you run it you will be prompted to authorize the |
| 19 | application to access your plus information. |
Joe Gregorio | 48d361f | 2010-08-18 13:19:21 -0400 | [diff] [blame] | 20 | |
Joe Gregorio | c4fc095 | 2011-11-09 12:21:11 -0500 | [diff] [blame] | 21 | $ python samples/plus/plus.py |
Joe Gregorio | 48d361f | 2010-08-18 13:19:21 -0400 | [diff] [blame] | 22 | |
| 23 | |
Tom Miller | 3a49e4c | 2010-09-28 15:16:25 -0700 | [diff] [blame] | 24 | Third Party Libraries |
Joe Gregorio | e9e236f | 2011-03-21 22:23:14 -0400 | [diff] [blame] | 25 | ===================== |
| 26 | |
Joe Gregorio | 20a5aa9 | 2011-04-01 17:44:25 -0400 | [diff] [blame] | 27 | These libraries will be installed when you install the client library: |
Joe Gregorio | 48d361f | 2010-08-18 13:19:21 -0400 | [diff] [blame] | 28 | |
| 29 | http://code.google.com/p/httplib2 |
| 30 | http://code.google.com/p/uri-templates |
Joe Gregorio | 8097e2a | 2011-05-17 11:11:34 -0400 | [diff] [blame] | 31 | http://code.google.com/p/python-gflags |
Joe Gregorio | 48d361f | 2010-08-18 13:19:21 -0400 | [diff] [blame] | 32 | http://github.com/simplegeo/python-oauth2 |
Joe Gregorio | 8097e2a | 2011-05-17 11:11:34 -0400 | [diff] [blame] | 33 | |
| 34 | Depending on your version of Python, these libraries may also be installed: |
| 35 | |
| 36 | http://pypi.python.org/pypi/simplejson/ |
Joe Gregorio | 432f17e | 2011-05-22 23:18:00 -0400 | [diff] [blame] | 37 | |
Joe Gregorio | 7accf7a | 2011-10-14 12:07:20 -0400 | [diff] [blame] | 38 | For development you will also need: |
Joe Gregorio | 432f17e | 2011-05-22 23:18:00 -0400 | [diff] [blame] | 39 | |
| 40 | http://pythonpaste.org/webtest/ |