Forked from delraydavis/IDrive-searchFiles-REST-API--PYTHON.py
Created
May 14, 2012 21:51
-
-
Save evsapi/2697569 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import urllib, urllib2 | |
| url = '<SERVER LOCATION>/evs/searchFiles' | |
| params = urllib.urlencode({ | |
| 'uid': <USER ID>, | |
| 'pwd': <USER PASSWORD>, | |
| 'p': <PATH ON IDRIVE SERVER>. | |
| 'searchkey' : <STRING TO SEARCH FOR>, | |
| 'trash' : <YES TO LOCATE IN TRASH> | |
| }) | |
| result = urllib.urlopen(url, params).read() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment