Skip to content

Instantly share code, notes, and snippets.

<?php
curl_setopt($ch, CURLOPT_URL, '<SERVER LOCATION>/evs/getFolderDetails');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
$body = 'uid=' . '<USER ID>'. '&pwd=' . '<USER PASSWORD>'. '&p=' . '<PATH TO FOLDER ON SERVER INFORMATION IS BEING REQUESTED ON>';
curl_setopt($ch, CURLOPT_POSTFIELDS, $body);
@evsapi
evsapi / getFolderDetails.java
Created May 15, 2012 04:39 — forked from kinlane/getFolderDetails.java
IDrive - EVS - REST API - getFolderDetails
String params="uid="+user+"&pwd="+pass+"&path="+path;
URL evsURL = new URL("https://<server address>/evs/getFolderDetails");
HttpURLConnection con = (HttpURLConnection)evsURL.openConnection();
con.setRequestMethod("POST");
con.setRequestProperty("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");
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/getAccountQuota")
import urllib, urllib2
url = '<SERVER LOCATION>/evs/getAccountQuota'
params = urllib.urlencode({
'uid': <USER ID>,
'pwd': <USER PASSWORD>
})
result = urllib.urlopen(url, params).read()
<?php
curl_setopt($ch, CURLOPT_URL, '<SERVER LOCATION>/evs/getAccountQuota');
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);
@evsapi
evsapi / getAccountQuota.java
Created May 15, 2012 04:36 — forked from kinlane/getAccountQuota.java
IDrive - EVS - REST API - getAccountQuota
String params="uid="+user+"&pwd="+pass;
URL evsURL = new URL("https://<server address>/evs/getAccountQuota");
HttpURLConnection con = (HttpURLConnection)evsURL.openConnection();
con.setRequestMethod("POST");
con.setRequestProperty("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");
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/getEvents")
import urllib, urllib2
url = '<SERVER LOCATION>/evs/getEvents'
params = urllib.urlencode({
'uid': <USER ID>,
'pwd': <USER PASSWORD>,
'month' : <MONTH OF EVENTS>,
'year': <YEAR OF EVENTS>
})
<?php
curl_setopt($ch, CURLOPT_URL, '<SERVER LOCATION>/evs/getEvents');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
$body = 'uid=' . '<USER ID>'. '&pwd=' . '<USER PASSWORD>'. '&month=' . '<MONTH OF EVENTS>'. '&year=' . '<YEAR OF EVENTS>';
curl_setopt($ch, CURLOPT_POSTFIELDS, $body);
@evsapi
evsapi / getEvents.java
Created May 15, 2012 04:32 — forked from kinlane/getEvents.java
IDrive - EVS - REST API - getEvents
String params="uid="+user+"&pwd="+pass+"&pvtkey="+key+"&month="+month+"&year="+year;
URL evsURL = new URL("https://<server address>/evs/getEvents");
HttpURLConnection con = (HttpURLConnection) evsURL.openConnection();
con.setRequestMethod("POST");
con.setRequestProperty("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");