Skip to content

Instantly share code, notes, and snippets.

require "net/https"
require 'uri'
uri = URI.parse("<IDRIVESYNC 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/downloadEvent")
import urllib, urllib2
url = '<IDRIVESYNC SERVER LOCATION>/evs/downloadEvent'
params = urllib.urlencode({
'uid': <USER ID>,
'pwd': <PASSWORD>,
'month' : <MONTH OF EVENT>,
'year': <YEAR OF EVENT>,
'eventid': <ID OF EVENT>
<?php
curl_setopt($ch, CURLOPT_URL, '<IDRIVESYNC SERVER LOCATION>/evs/downloadEvent');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
$body = 'uid=' . '<USER ID>'. '&pwd=' . '<PASSWORD>'. '&month=' . '<MONTH OF EVENTS>'. '&year=' . '<YEAR OF EVENTS>'. '&eventid=' . '<ID OF EVENT>';
curl_setopt($ch, CURLOPT_POSTFIELDS, $body);
@evsapi
evsapi / downloadEvent.java
Created May 15, 2012 10:56 — forked from kinlane/downloadEvent.java
IDriveSync - EVS - REST API - downloadEvent
String params=&quot;uid=&quot;+user+&quot;&amp;pwd=&quot;+pass+&quot;&amp;month=&quot;+month+&quot;&amp;year=&quot;+year+&quot;&amp;eventid=&quot;+eventid;
URL evsURL = new URL(&quot;https://&lt;server address&gt;/evs/downloadEvent&quot;);
HttpURLConnection con = (HttpURLConnection) evsURL.openConnection();
con.setRequestMethod(&quot;POST&quot;);
con.setRequestProperty(&quot;Content-Type&quot;,&quot;application/x-www-form-urlencoded; charset=UTF-8&quot;);
require "net/https"
require 'uri'
uri = URI.parse("<IDRIVE 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/downloadEvent")
@evsapi
evsapi / downloadEvent.java
Created May 15, 2012 10:50 — forked from kinlane/downloadEvent.java
IDrive - EVS - REST API - downloadEvent
String params=&quot;uid=&quot;+user+&quot;&amp;pwd=&quot;+pass+&quot;&amp;month=&quot;+month+&quot;&amp;year=&quot;+year+&quot;&amp;eventid=&quot;+eventid;
URL evsURL = new URL(&quot;https://&lt;server address&gt;/evs/downloadEvent&quot;);
HttpURLConnection con = (HttpURLConnection) evsURL.openConnection();
con.setRequestMethod(&quot;POST&quot;);
con.setRequestProperty(&quot;Content-Type&quot;,&quot;application/x-www-form-urlencoded; charset=UTF-8&quot;);
@evsapi
evsapi / getServerAddress.java
Created May 15, 2012 04:56 — forked from kinlane/getServerAddress.java
IDrive - EVS - REST API - getServerAddress
String params=&quot;uid=&quot;+user+&quot;&amp;pwd=&quot;+pass;
URL evsURL = new URL(&quot;https://evs.idrive.com/evs/getServerAddress&quot;);
HttpURLConnection con = (HttpURLConnection)evsURL.openConnection();
con.setRequestMethod(&quot;POST&quot;);
con.setRequestProperty(&quot;Content-Type&quot;,&quot;application/x-www-form-urlencoded; charset=UTF-8&quot;);
@evsapi
evsapi / browseFolder.java
Created May 15, 2012 04:51 — forked from kinlane/browseFolder.java
IDrive - EVS - REST API - browseFolder
String params=&quot;uid=&quot;+user+&quot;&amp;pwd=&quot;+pass+&quot;&amp;path=&quot;+path;
URL evsURL = new URL(&quot;https://&lt;server address&gt;/evs/browseFolder&quot;);
HttpURLConnection con = (HttpURLConnection)evsURL.openConnection();
con.setRequestMethod(&quot;POST&quot;);
con.setRequestProperty(&quot;Content-Type&quot;,&quot;application/x-www-form-urlencoded; charset=UTF-8&quot;);
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/getFolderDetails")
import urllib, urllib2
url = '<SERVER LOCATION>/evs/getFolderDetails'
params = urllib.urlencode({
'uid': <USER ID>,
'pwd': <USER PASSWORD>,
'p': <PATH ON SERVER>
})
result = urllib.urlopen(url, params).read()