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
| try | |
| { | |
| String sourcePath="/test/photos/My.jpg"; | |
| String fileName="My.jpg"; | |
| String destPath="/myfiles/"; |
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
| try | |
| { | |
| String sourcePath="/test/photos/My.jpg"; | |
| String fileName="My.jpg"; | |
| String destPath="/myfiles/"; |
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
| try | |
| { | |
| String sourcePath="/test/photos/My.jpg"; | |
| String fileName="My.jpg"; | |
| String destPath="/myfiles/"; |
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
| String params="uid="+user+"&pwd="+pass; | |
| URL evsURL = new URL("https://evs.idrivesync.com/evs/getServerAddress"); | |
| 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, 'https://evs.idrivesync.com/evs/getServerAddress'); | |
| curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | |
| curl_setopt($ch, CURLOPT_POST, true); | |
| $body = 'uid=' . '<USER ID>'. '&pwd=' . '<USER PASSWORD>'; | |
| 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 = 'https://evs.idrivesync.com/evs/getServerAddress' | |
| params = urllib.urlencode({ | |
| 'uid': <USER ID>, | |
| 'pwd': <USER PASSWORD> | |
| }) | |
| result = urllib.urlopen(url, params).read() |
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("https://evs.idrivesync.com") | |
| 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/getServerAddress") |
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="+user+"&pwd="+password; | |
| try | |
| { | |
| URL evsURL = new URL("https://<server address>/evs/accountValidate"); | |
| 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
| <?php | |
| curl_setopt($ch, CURLOPT_URL, '<SERVER LOCATION>/evs/validateAccount'); | |
| curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | |
| curl_setopt($ch, CURLOPT_POST, true); | |
| $body = 'uid=' . '<USER ID>'. '&pwd=' . '<USER PASSWORD>'; | |
| curl_setopt($ch, CURLOPT_POSTFIELDS, $body); |
OlderNewer