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
| // Upload a File | |
| $uid = "[your user name]"; | |
| $pwd = "[your user password]"; | |
| $localFile = "[path to your local file just uploaded or otherwise]"; | |
| $crtpath = "[path to your local cert]"; | |
| // file | |
| $PostFields = array( | |
| 'file' => '@' . $localFile . '', | |
| 'uid' => $uid, |
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 sys, urllib, urllib2 | |
| from poster.encode import multipart_encode | |
| from poster.streaminghttp import register_openers | |
| from xml.dom.minidom import parseString | |
| import xml.dom.minidom as xdm | |
| register_openers() |
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
| #!/usr/bin/eruby | |
| <% | |
| require "net/https" | |
| require 'uri' | |
| require 'rexml/document' | |
| base_url = "[API URL retrieved from previous getServerAddress call]" | |
| uid = "[your user name]" | |
| pwd = "[your password]" |
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
| //Parameters to download/restore the latest version | |
| String params="uid="+strUsername+"&pwd="+strPassword+"&pvtkey="+strKey+"&p="+strPath; | |
| // Parameters to download/restore specified version | |
| String params="uid="+strUsername+"&pwd="+strPassword+"&pvtkey="+strKey+"&p="+strPath+"&version="+strVersion; | |
| } |
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
| <?php | |
| $webApiServer = "[path to server from previous getServerAddress]"; | |
| $uid = "[your user]"; | |
| $pwd = "[your password]"; | |
| $crtpath = '[path to your local cert for curl calls]'; | |
| $localfilepath = '[Your download file path]'; | |
| $pvtkey = '[your private key]'; |
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 sys, urllib, urllib2 | |
| from poster.encode import multipart_encode | |
| from poster.streaminghttp import register_openers | |
| from xml.dom.minidom import parseString | |
| import xml.dom.minidom as xdm | |
| register_openers() |
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
| #!/usr/bin/eruby | |
| <% | |
| require "net/https" | |
| require 'uri' | |
| require 'rexml/document' | |
| base_url = "[url retrieved from getServerAdress API call]" | |
| uid = "[your user name]" |
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
| String params = "uid=" + strUsername + "&pwd=" + strPassword + "&p=" + strPath + "&searchkey="+strSearchKey; | |
| URL evsURL = new URL("https://<server address>/evs/searchFiles"); | |
| HttpURLConnection con = (HttpURLConnection) evsURL.openConnection(); | |
| con.setRequestMethod("POST"); | |
| con.setRequestProperty("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"); |
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
| <?php | |
| curl_setopt($ch, CURLOPT_URL, '<SERVER LOCATION>/evs/searchFiles'); | |
| curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | |
| curl_setopt($ch, CURLOPT_POST, true); | |
| $body = 'uid=' . '<USER ID>'. '&pwd=' . '<USER PASSWORD>' . '&p=' . '<PATH TO DIRECTORY WISHED TO SEARCH>' . '&searchkey=' . '<TERM WISHED TO SEARCH FOR>' . '&trash=' . '<YES IF WISH TO INCLUDE DELETED ITEMS IN SEARCH / NO IF WISH TO ONLY SEARCH CURRENT ELEMENTS>'; | |
| curl_setopt($ch, CURLOPT_POSTFIELDS, $body); |
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> |