Skip to content

Instantly share code, notes, and snippets.

import urllib, urllib2
url = '<SERVER LOCATION>/evs/isFileFolderExists '
params = urllib.urlencode({
'uid': <USER ID>,
'pwd': <USER PASSWORD>,
'p': <PATH ON SERVER>
})
result = urllib.urlopen(url, params).read()
<?php
curl_setopt($ch, CURLOPT_URL, '<SERVER LOCATION>/evs/isFileFolderExists ');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
$body = 'uid=' . '<USER ID>'. '&pwd=' . '<USER PASSWORD>'.'&p=' . '<PATH>';
curl_setopt($ch, CURLOPT_POSTFIELDS, $body);
@evsapi
evsapi / isFileFolderExists.java
Created May 14, 2012 22:03 — forked from kinlane/isFileFolderExists.java
IDrive - EVS - REST API - isFileFolderExists
String params="uid="+user+"&pwd="+pass+"&p="+path;
URL evsURL = new URL("https://<server address>/evs/isFileFolderExists");
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/getProperties")
import urllib, urllib2
url = '<SERVER LOCATION>/evs/getProperties'
params = urllib.urlencode({
'uid': <USER ID>,
'pwd': <USER PASSWORD>,
'p': <PATH ON SERVER>
})
result = urllib.urlopen(url, params).read()
<?php
curl_setopt($ch, CURLOPT_URL, '<SERVER LOCATION>/evs/getProperties');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
$body = 'uid=' . '<USER ID>'. '&pwd=' . '<USER PASSWORD>'.'&p=' . '<PATH>';
curl_setopt($ch, CURLOPT_POSTFIELDS, $body);
@evsapi
evsapi / getProperties.java
Created May 14, 2012 21:58 — forked from kinlane/getProperties.java
IDrive - EVS - REST API - getProperties
String params="uid="+user+"&pwd="+pass+"&p="+path;
URL evsURL = new URL("https://<server address>/evs/getProperties");
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/getVersions")
import urllib, urllib2
url = '<SERVER LOCATION>/evs/getVersions'
params = urllib.urlencode({
'uid': <USER ID>,
'pwd': <USER PASSWORD>,
'p': <PATH ON SERVER>
})
result = urllib.urlopen(url, params).read()
<?php
curl_setopt($ch, CURLOPT_URL, '<SERVER LOCATION>/evs/getVersions');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
$body = 'uid=' . '<USER ID>'. '&pwd=' . '<USER PASSWORD>'.'&p='.'<PATH TO FILE ON SERVER>';
curl_setopt($ch, CURLOPT_POSTFIELDS, $body);