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/renameFileFolder") |
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/renameFileFolder' | |
| params = urllib.urlencode({ | |
| 'uid': <USER ID>, | |
| 'pwd': <USER PASSWORD>, | |
| 'pvtkey' : <PRIVATE KEY>, | |
| 'oldpath': <PATH ON IDRIVE SERVER>, | |
| 'newpath': <PATH ON IDRIVE 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/renameFileFolder'); | |
| 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 HAS BEEN CONFIGURED TO USE>' . '&oldpath=' . '<PATH TO THE ORIGINAL DESIGNATED FOLDER TO RENAME>' . '&newpath=' . '<PATH TO THE NEW DESIGNATED FOLDER>'; | |
| 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 rename file/folder | |
| String params = "uid=" + user + "&pwd=" + pass + "&pvtkey=" + key + "&oldpath="+ oldPath+”&newpath=”+newPath; | |
| URL evsURL = new URL("https://<server address>/evs/renameFileFolder"); | |
| 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/createFolder") |
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/createFolder' | |
| params = urllib.urlencode({ | |
| 'uid': <USER ID>, | |
| 'pwd': <USER PASSWORD>, | |
| 'pvtkey' : <PRIVATE KEY>, | |
| 'p': <PATH ON SERVER>, | |
| 'foldername' : <NAME OF FOLDER TO BE CREATED> |
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/createFolder'); | |
| 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>' . '&p=' . '<PATH TO THE LOCATION NEW FOLDER SHOULD BE CREATED>' . '&foldername=' . '<STRING DEFINING NAME OF FOLDER TO CREATE>'; | |
| 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 folder create | |
| String params = "uid=" + user + "&pwd=" + pass + "&pvtkey=" + key + "&p="+ strPath+"&foldername=”+fname; | |
| ; | |
| URL evsURL = new URL("https://<server address>/evs/createFolder"); | |
| HttpURLConnection con = (HttpURLConnection) evsURL.openConnection(); |
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 folder create | |
| String params = "uid=" + user + "&pwd=" + pass + "&pvtkey=" + key + "&p="+ strPath+”&foldername=”+fname; | |
| ; | |
| URL evsURL = new URL("https://<server address>/evs/createFolder"); | |
| HttpURLConnection con = (HttpURLConnection) evsURL.openConnection(); |
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/isFileFolderExists") |