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/emptyTrash'); | |
| curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | |
| curl_setopt($ch, CURLOPT_POST, true); | |
| $body = 'uid=' . '<USER ID>'. '&pwd=' . '<USER PASSWORD>'. '&pvtkey=' . '<USER DEFINED PRIVATE KEY. ONLY REQUIRED IF THE ACCOUNT IS CONFIGURED TO REQUIRE PRIVATE KEY>'; | |
| 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
| //For empty trash | |
| String params = "uid=" + user + "&pwd=" + pass + "&pvtkey=" + key; | |
| URL evsURL = new URL("https://<server address>/evs/emptyTrash"); | |
| HttpURLConnection con = (HttpURLConnection) evsURL.openConnection(); | |
| con.setRequestMethod("POST"); |
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
| require "net/https" | |
| require 'uri' | |
| uri = URI.parse("<SERVER LOCATION>") | |
| http = Net::HTTP.new(uri.host, uri.port) | |
| http.use_ssl = true | |
| http.verify_mode = OpenSSL::SSL::VERIFY_NONE | |
| request = Net::HTTP::Post.new("/evs/putBackFromTrash") |
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/putBackFromTrash' | |
| params = urllib.urlencode({ | |
| 'uid': <USER ID>, | |
| 'pwd': <USER PASSWORD>, | |
| 'pvtkey' : <PRIVATE KEY>, | |
| 'p': <PATH ON SERVER> | |
| }) |
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/putBackFromTrash'); | |
| curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | |
| curl_setopt($ch, CURLOPT_POST, true); | |
| $body = 'uid=' . '<USER ID>'. '&pwd=' . '<USER PASSWORD>'. '&pvtkey=' . '<USER DEFINED PRIVATE KEY. ONLY REQUIRED IF THE ACCOUNT IS CONFIGURED TO REQUIRE PRIVATE KEY>'. '&p=' . '<PATH OF THE FILE THAT NEEDS TO REVERT BACK ON THE SERVER>'; | |
| 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
| //For files put back from trash | |
| String params = "uid=" + user + "&pwd=" + pass + "&pvtkey=" + key + "&p="+ path; | |
| URL evsURL = new URL("https://<server address>/evs/putBackFromTrash"); | |
| HttpURLConnection con = (HttpURLConnection) evsURL.openConnection(); | |
| con.setRequestMethod("POST"); |
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
| require "net/https" | |
| require 'uri' | |
| uri = URI.parse("<SERVER LOCATION>") | |
| http = Net::HTTP.new(uri.host, uri.port) | |
| http.use_ssl = true | |
| http.verify_mode = OpenSSL::SSL::VERIFY_NONE | |
| request = Net::HTTP::Post.new("/evs/copyPasteFileFolder") |
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/copyPasteFileFolder' | |
| params = urllib.urlencode({ | |
| 'uid': <USER ID>, | |
| 'pwd': <USER PASSWORD>, | |
| 'pvtkey' : <PRIVATE KEY>, | |
| 'p': <PATH ON SERVER>, | |
| 'fileFolderPaths': <ORIGIN PATH ON SERVER> |
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/copyPasteFileFolder'); | |
| curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | |
| curl_setopt($ch, CURLOPT_POST, true); | |
| $body = 'uid=' . '<USER ID>' . '&pwd=' . '<USER PASSWORD>';. '&pvtkey=' . '<USER DEFINED PRIVATE KEY. ONLY REQUIRED IF ACCOUNT IS CONFIGURED TO USE PRIVATE KEY>'. '&p=' . '<DESTINATION PATH TO THE LOCATION ON THE IDRIVE SERVER TO COPY TO>'. '&fileFolderPaths=' . '<SOURCE PATH TO FILE TO BE COPIED ON THE IDRIVE SERVER>' | |
| 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
| //For file/folder copy paste | |
| String params = "uid=" + user + "&pwd=" + pass + "&pvtkey=" + key + "&p="+ destPath+”&fileFolderPaths=”+sourcePath; | |
| URL evsURL = new URL("https://<server address>/evs/copyPasteFileFolder"); | |
| HttpURLConnection con = (HttpURLConnection) evsURL.openConnection(); | |
| con.setRequestMethod("POST"); |