Joe Gregorio | 48d361f | 2010-08-18 13:19:21 -0400 | [diff] [blame] | 1 | This is a prototype implementation of a client |
| 2 | for discovery based APIs. |
| 3 | |
| 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 | |
Tom Miller | 7c95d81 | 2010-10-11 11:50:52 -0700 | [diff] [blame] | 9 | $ python setup.py install --record=files.txt |
| 10 | |
| 11 | to install the files and record what files are installed in files.txt. |
| 12 | |
| 13 | If you want to do a "mock install" and simply extend your PYTHONPATH |
| 14 | for the current shell to include this folder and the packages in it, do |
| 15 | |
| 16 | $ source setpath.sh |
| 17 | |
| 18 | from the root of the project directory. |
| 19 | |
| 20 | |
| 21 | Uninstall |
| 22 | ========= |
| 23 | |
| 24 | $ cat files.txt | xargs rm -rf |
| 25 | |
| 26 | You may need root privileges to do this. |
| 27 | |
Joe Gregorio | 48d361f | 2010-08-18 13:19:21 -0400 | [diff] [blame] | 28 | |
| 29 | Running |
| 30 | ======= |
| 31 | |
| 32 | First run three-legged-dance.py to get OAuth |
Tom Miller | 3a49e4c | 2010-09-28 15:16:25 -0700 | [diff] [blame] | 33 | tokens for Buzz, which will be stored in |
| 34 | buzz.dat in the working directory. |
Joe Gregorio | 48d361f | 2010-08-18 13:19:21 -0400 | [diff] [blame] | 35 | |
Tom Miller | c378c6d | 2010-10-11 12:00:36 -0700 | [diff] [blame] | 36 | $ python samples/buzz/three_legged_dance.py |
Joe Gregorio | 48d361f | 2010-08-18 13:19:21 -0400 | [diff] [blame] | 37 | |
Tom Miller | 3a49e4c | 2010-09-28 15:16:25 -0700 | [diff] [blame] | 38 | Then run buzz.py, which will use the apiclient |
Joe Gregorio | 48d361f | 2010-08-18 13:19:21 -0400 | [diff] [blame] | 39 | library to retrieve the title of the most |
Tom Miller | 3a49e4c | 2010-09-28 15:16:25 -0700 | [diff] [blame] | 40 | recent entry in Buzz and post a test message. |
Joe Gregorio | 48d361f | 2010-08-18 13:19:21 -0400 | [diff] [blame] | 41 | |
Tom Miller | c378c6d | 2010-10-11 12:00:36 -0700 | [diff] [blame] | 42 | $ python samples/buzz/buzz.py |
Joe Gregorio | 48d361f | 2010-08-18 13:19:21 -0400 | [diff] [blame] | 43 | |
Tom Miller | 7c95d81 | 2010-10-11 11:50:52 -0700 | [diff] [blame] | 44 | After following the install directions (using setup.py or setpath.sh) you |
| 45 | should be able to cd to samples/cmdline and run the code from there. |
| 46 | |
Joe Gregorio | 48d361f | 2010-08-18 13:19:21 -0400 | [diff] [blame] | 47 | |
Tom Miller | 3a49e4c | 2010-09-28 15:16:25 -0700 | [diff] [blame] | 48 | Third Party Libraries |
Joe Gregorio | 48d361f | 2010-08-18 13:19:21 -0400 | [diff] [blame] | 49 | ==================== |
| 50 | |
| 51 | http://code.google.com/p/httplib2 |
| 52 | http://code.google.com/p/uri-templates |
| 53 | http://github.com/simplegeo/python-oauth2 |