SeliSign
API change historyUse the api to sign electronic documents
Get documents which require signatures using a query request.
Payload information: DocumentStatus: Filter all documents by this document status. SignatureClass: Filter all documents by this signature Class. SearchKey: String representing the key words for searching document. PageNumber: Integer value for the page number of document. PageSize: Integer value of the page size. Sort: Organize list of documents by sorting mechanism. SortBy: The method by which the document list will be sorted. IsArchived: Brings archived cancelled documents only. IsCancelled: Brings workflow cancelled documents only. IsOwned: Brings created documents only for the current user. IsReceived: Brings received documents only for the current user. IsSigned: Brings signed documents only for the current user. IsUnsigned: Brings unsigned documents only for the current user. IsSignatoryDetailsAggregated: Set to true of this query is supposed to send signatory details of the documents as well. IsBulkSignatureDocumentGenerated: Filters all documents generated by a Bulk Esignature document. BulkSignatureDocumentId: Filters all documents generated by this particular Bulk Esignature document Id. SentByPersonId: Filters all documents sent to the current user by this person. FromCreatedDate: Filters all documents created after this date. ToCreatedDate: Filters all documents created before this date. Tags: Filters all documents containing these tags. Must be passed as comma seperated values.
Try itRequest
Request URL
Request parameters
-
(optional)integer
Format - int32. Format - int32.
-
(optional)integer
Format - int32. Format - int32.
-
(optional)string
-
(optional)integer
Format - int32. Format - int32.
-
(optional)integer
Format - int32. Format - int32.
-
(optional)integer
Format - int32. Format - int32.
-
(optional)string
-
(optional)boolean
-
(optional)boolean
-
(optional)boolean
-
(optional)boolean
-
(optional)boolean
-
(optional)boolean
-
(optional)boolean
-
(optional)boolean
-
(optional)string
-
(optional)string
-
(optional)string
Format - date-time (as date-time in RFC3339). Format - date-time (as date-time in RFC3339).
-
(optional)string
Format - date-time (as date-time in RFC3339). Format - date-time (as date-time in RFC3339).
-
(optional)string
Request headers
Request body
Responses
200 OK
Success
Representations
{
"TotalRecordCount": 0,
"Results": [
{
"Title": "string",
"DocumentId": "string",
"SignatureClass": 0,
"DocumentStatus": 0,
"FilesToBeSigned": [
{
"Order": 0,
"ItemId": "string",
"Name": "string",
"FileSize": 0,
"FileType": 0
}
],
"CreatedBy": "string",
"OwnerName": "string",
"CreateDate": "string",
"RollOutDate": "string",
"CompleteDate": "string",
"IsSigned": true,
"IsOwner": true,
"Archived": true,
"Cancelled": true,
"Signatories": [
{
"Person": {
"ItemId": "string",
"CreatedBy": "string",
"CreateDate": "string",
"DisplayName": "string",
"Email": "string",
"Language": "string",
"Tags": [
"string"
],
"FirstName": "string",
"LastName": "string",
"PhoneNumber": "string",
"ProposedUserId": "string",
"ProfileImage": "string",
"OrganizationList": [
{
"OrganizationId": "string"
}
]
},
"IsOwner": true,
"ItemId": "string",
"SigningOrder": 0,
"EnterpriseRole": "string",
"SignatoryOrder": 0,
"ContractRole": 0,
"HasDeclined": true
}
],
"BulkSignatureDocumentId": "string",
"SequentialSignatureEnabled": true,
"CancellationReason": 0
}
]
}
{
"type": "object",
"properties": {
"TotalRecordCount": {
"type": "integer",
"format": "int64"
},
"Results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"Title": {
"type": "string"
},
"DocumentId": {
"type": "string"
},
"SignatureClass": {
"enum": [
0,
1,
2,
3
],
"type": "integer",
"format": "int32"
},
"DocumentStatus": {
"enum": [
0,
1,
2
],
"type": "integer",
"format": "int32"
},
"FilesToBeSigned": {
"type": "array",
"items": {
"type": "object",
"properties": {
"Order": {
"type": "integer",
"format": "int32"
},
"ItemId": {
"type": "string"
},
"Name": {
"type": "string"
},
"FileSize": {
"type": "integer",
"format": "int64"
},
"FileType": {
"type": "integer",
"format": "int32"
}
},
"additionalProperties": false
}
},
"CreatedBy": {
"type": "string"
},
"OwnerName": {
"type": "string"
},
"CreateDate": {
"type": "string",
"format": "date-time"
},
"RollOutDate": {
"type": "string",
"format": "date-time",
"nullable": true
},
"CompleteDate": {
"type": "string",
"format": "date-time",
"nullable": true
},
"IsSigned": {
"type": "boolean"
},
"IsOwner": {
"type": "boolean"
},
"Archived": {
"type": "boolean"
},
"Cancelled": {
"type": "boolean"
},
"Signatories": {
"type": "array",
"items": {
"type": "object",
"properties": {
"Person": {
"type": "object",
"properties": {
"ItemId": {
"type": "string"
},
"CreatedBy": {
"type": "string"
},
"CreateDate": {
"type": "string",
"format": "date-time"
},
"DisplayName": {
"type": "string"
},
"Email": {
"type": "string"
},
"Language": {
"type": "string"
},
"Tags": {
"type": "array",
"items": {
"type": "string"
}
},
"FirstName": {
"type": "string"
},
"LastName": {
"type": "string"
},
"PhoneNumber": {
"type": "string"
},
"ProposedUserId": {
"type": "string"
},
"ProfileImage": {
"type": "string"
},
"OrganizationList": {
"type": "array",
"items": {
"type": "object",
"properties": {
"OrganizationId": {
"type": "string"
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
},
"IsOwner": {
"type": "boolean"
},
"ItemId": {
"type": "string"
},
"SigningOrder": {
"type": "integer",
"format": "int64"
},
"EnterpriseRole": {
"type": "string"
},
"SignatoryOrder": {
"type": "integer",
"format": "int32"
},
"ContractRole": {
"enum": [
0,
1
],
"type": "integer",
"format": "int32",
"nullable": true
},
"HasDeclined": {
"type": "boolean"
}
},
"additionalProperties": false
}
},
"BulkSignatureDocumentId": {
"type": "string"
},
"SequentialSignatureEnabled": {
"type": "boolean"
},
"CancellationReason": {
"enum": [
0,
1
],
"type": "integer",
"format": "int32",
"nullable": true
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
}
{
"TotalRecordCount": 0,
"Results": [
{
"Title": "string",
"DocumentId": "string",
"SignatureClass": 0,
"DocumentStatus": 0,
"FilesToBeSigned": [
{
"Order": 0,
"ItemId": "string",
"Name": "string",
"FileSize": 0,
"FileType": 0
}
],
"CreatedBy": "string",
"OwnerName": "string",
"CreateDate": "string",
"RollOutDate": "string",
"CompleteDate": "string",
"IsSigned": true,
"IsOwner": true,
"Archived": true,
"Cancelled": true,
"Signatories": [
{
"Person": {
"ItemId": "string",
"CreatedBy": "string",
"CreateDate": "string",
"DisplayName": "string",
"Email": "string",
"Language": "string",
"Tags": [
"string"
],
"FirstName": "string",
"LastName": "string",
"PhoneNumber": "string",
"ProposedUserId": "string",
"ProfileImage": "string",
"OrganizationList": [
{
"OrganizationId": "string"
}
]
},
"IsOwner": true,
"ItemId": "string",
"SigningOrder": 0,
"EnterpriseRole": "string",
"SignatoryOrder": 0,
"ContractRole": 0,
"HasDeclined": true
}
],
"BulkSignatureDocumentId": "string",
"SequentialSignatureEnabled": true,
"CancellationReason": 0
}
]
}
{
"type": "object",
"properties": {
"TotalRecordCount": {
"type": "integer",
"format": "int64"
},
"Results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"Title": {
"type": "string"
},
"DocumentId": {
"type": "string"
},
"SignatureClass": {
"enum": [
0,
1,
2,
3
],
"type": "integer",
"format": "int32"
},
"DocumentStatus": {
"enum": [
0,
1,
2
],
"type": "integer",
"format": "int32"
},
"FilesToBeSigned": {
"type": "array",
"items": {
"type": "object",
"properties": {
"Order": {
"type": "integer",
"format": "int32"
},
"ItemId": {
"type": "string"
},
"Name": {
"type": "string"
},
"FileSize": {
"type": "integer",
"format": "int64"
},
"FileType": {
"type": "integer",
"format": "int32"
}
},
"additionalProperties": false
}
},
"CreatedBy": {
"type": "string"
},
"OwnerName": {
"type": "string"
},
"CreateDate": {
"type": "string",
"format": "date-time"
},
"RollOutDate": {
"type": "string",
"format": "date-time",
"nullable": true
},
"CompleteDate": {
"type": "string",
"format": "date-time",
"nullable": true
},
"IsSigned": {
"type": "boolean"
},
"IsOwner": {
"type": "boolean"
},
"Archived": {
"type": "boolean"
},
"Cancelled": {
"type": "boolean"
},
"Signatories": {
"type": "array",
"items": {
"type": "object",
"properties": {
"Person": {
"type": "object",
"properties": {
"ItemId": {
"type": "string"
},
"CreatedBy": {
"type": "string"
},
"CreateDate": {
"type": "string",
"format": "date-time"
},
"DisplayName": {
"type": "string"
},
"Email": {
"type": "string"
},
"Language": {
"type": "string"
},
"Tags": {
"type": "array",
"items": {
"type": "string"
}
},
"FirstName": {
"type": "string"
},
"LastName": {
"type": "string"
},
"PhoneNumber": {
"type": "string"
},
"ProposedUserId": {
"type": "string"
},
"ProfileImage": {
"type": "string"
},
"OrganizationList": {
"type": "array",
"items": {
"type": "object",
"properties": {
"OrganizationId": {
"type": "string"
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
},
"IsOwner": {
"type": "boolean"
},
"ItemId": {
"type": "string"
},
"SigningOrder": {
"type": "integer",
"format": "int64"
},
"EnterpriseRole": {
"type": "string"
},
"SignatoryOrder": {
"type": "integer",
"format": "int32"
},
"ContractRole": {
"enum": [
0,
1
],
"type": "integer",
"format": "int32",
"nullable": true
},
"HasDeclined": {
"type": "boolean"
}
},
"additionalProperties": false
}
},
"BulkSignatureDocumentId": {
"type": "string"
},
"SequentialSignatureEnabled": {
"type": "boolean"
},
"CancellationReason": {
"enum": [
0,
1
],
"type": "integer",
"format": "int32",
"nullable": true
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
}
Code samples
@ECHO OFF
curl -v -X GET "https://stg-ecap.azure-api.net/SeliSign/Queries/GetDocumentsToSign?DocumentStatus={integer}&SignatureClass={integer}&SearchKey={string}&PageNumber={integer}&PageSize={integer}&Sort={integer}&SortBy={string}&IsArchived={boolean}&IsCancelled={boolean}&IsOwned={boolean}&IsReceived={boolean}&IsSigned={boolean}&IsUnsigned={boolean}&IsSignatoryDetailsAggregated={boolean}&IsBulkSignatureDocumentGenerated={boolean}&BulkSignatureDocumentId={string}&SentByPersonId={string}&FromCreatedDate={string}&ToCreatedDate={string}&Tags={string}"
-H "Ocp-Apim-Subscription-Key: {subscription key}"
--data-ascii "{body}"
using System;
using System.Net.Http.Headers;
using System.Text;
using System.Net.Http;
using System.Web;
namespace CSHttpClientSample
{
static class Program
{
static void Main()
{
MakeRequest();
Console.WriteLine("Hit ENTER to exit...");
Console.ReadLine();
}
static async void MakeRequest()
{
var client = new HttpClient();
var queryString = HttpUtility.ParseQueryString(string.Empty);
// Request headers
client.DefaultRequestHeaders.Add("Ocp-Apim-Subscription-Key", "{subscription key}");
// Request parameters
queryString["DocumentStatus"] = "{integer}";
queryString["SignatureClass"] = "{integer}";
queryString["SearchKey"] = "{string}";
queryString["PageNumber"] = "{integer}";
queryString["PageSize"] = "{integer}";
queryString["Sort"] = "{integer}";
queryString["SortBy"] = "{string}";
queryString["IsArchived"] = "{boolean}";
queryString["IsCancelled"] = "{boolean}";
queryString["IsOwned"] = "{boolean}";
queryString["IsReceived"] = "{boolean}";
queryString["IsSigned"] = "{boolean}";
queryString["IsUnsigned"] = "{boolean}";
queryString["IsSignatoryDetailsAggregated"] = "{boolean}";
queryString["IsBulkSignatureDocumentGenerated"] = "{boolean}";
queryString["BulkSignatureDocumentId"] = "{string}";
queryString["SentByPersonId"] = "{string}";
queryString["FromCreatedDate"] = "{string}";
queryString["ToCreatedDate"] = "{string}";
queryString["Tags"] = "{string}";
var uri = "https://stg-ecap.azure-api.net/SeliSign/Queries/GetDocumentsToSign?" + queryString;
var response = await client.GetAsync(uri);
}
}
}
// // This sample uses the Apache HTTP client from HTTP Components (http://hc.apache.org/httpcomponents-client-ga/)
import java.net.URI;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.utils.URIBuilder;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.util.EntityUtils;
public class JavaSample
{
public static void main(String[] args)
{
HttpClient httpclient = HttpClients.createDefault();
try
{
URIBuilder builder = new URIBuilder("https://stg-ecap.azure-api.net/SeliSign/Queries/GetDocumentsToSign");
builder.setParameter("DocumentStatus", "{integer}");
builder.setParameter("SignatureClass", "{integer}");
builder.setParameter("SearchKey", "{string}");
builder.setParameter("PageNumber", "{integer}");
builder.setParameter("PageSize", "{integer}");
builder.setParameter("Sort", "{integer}");
builder.setParameter("SortBy", "{string}");
builder.setParameter("IsArchived", "{boolean}");
builder.setParameter("IsCancelled", "{boolean}");
builder.setParameter("IsOwned", "{boolean}");
builder.setParameter("IsReceived", "{boolean}");
builder.setParameter("IsSigned", "{boolean}");
builder.setParameter("IsUnsigned", "{boolean}");
builder.setParameter("IsSignatoryDetailsAggregated", "{boolean}");
builder.setParameter("IsBulkSignatureDocumentGenerated", "{boolean}");
builder.setParameter("BulkSignatureDocumentId", "{string}");
builder.setParameter("SentByPersonId", "{string}");
builder.setParameter("FromCreatedDate", "{string}");
builder.setParameter("ToCreatedDate", "{string}");
builder.setParameter("Tags", "{string}");
URI uri = builder.build();
HttpGet request = new HttpGet(uri);
request.setHeader("Ocp-Apim-Subscription-Key", "{subscription key}");
// Request body
StringEntity reqEntity = new StringEntity("{body}");
request.setEntity(reqEntity);
HttpResponse response = httpclient.execute(request);
HttpEntity entity = response.getEntity();
if (entity != null)
{
System.out.println(EntityUtils.toString(entity));
}
}
catch (Exception e)
{
System.out.println(e.getMessage());
}
}
}
<!DOCTYPE html>
<html>
<head>
<title>JSSample</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
</head>
<body>
<script type="text/javascript">
$(function() {
var params = {
// Request parameters
"DocumentStatus": "{integer}",
"SignatureClass": "{integer}",
"SearchKey": "{string}",
"PageNumber": "{integer}",
"PageSize": "{integer}",
"Sort": "{integer}",
"SortBy": "{string}",
"IsArchived": "{boolean}",
"IsCancelled": "{boolean}",
"IsOwned": "{boolean}",
"IsReceived": "{boolean}",
"IsSigned": "{boolean}",
"IsUnsigned": "{boolean}",
"IsSignatoryDetailsAggregated": "{boolean}",
"IsBulkSignatureDocumentGenerated": "{boolean}",
"BulkSignatureDocumentId": "{string}",
"SentByPersonId": "{string}",
"FromCreatedDate": "{string}",
"ToCreatedDate": "{string}",
"Tags": "{string}",
};
$.ajax({
url: "https://stg-ecap.azure-api.net/SeliSign/Queries/GetDocumentsToSign?" + $.param(params),
beforeSend: function(xhrObj){
// Request headers
xhrObj.setRequestHeader("Ocp-Apim-Subscription-Key","{subscription key}");
},
type: "GET",
// Request body
data: "{body}",
})
.done(function(data) {
alert("success");
})
.fail(function() {
alert("error");
});
});
</script>
</body>
</html>
#import <Foundation/Foundation.h>
int main(int argc, const char * argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
NSString* path = @"https://stg-ecap.azure-api.net/SeliSign/Queries/GetDocumentsToSign";
NSArray* array = @[
// Request parameters
@"entities=true",
@"DocumentStatus={integer}",
@"SignatureClass={integer}",
@"SearchKey={string}",
@"PageNumber={integer}",
@"PageSize={integer}",
@"Sort={integer}",
@"SortBy={string}",
@"IsArchived={boolean}",
@"IsCancelled={boolean}",
@"IsOwned={boolean}",
@"IsReceived={boolean}",
@"IsSigned={boolean}",
@"IsUnsigned={boolean}",
@"IsSignatoryDetailsAggregated={boolean}",
@"IsBulkSignatureDocumentGenerated={boolean}",
@"BulkSignatureDocumentId={string}",
@"SentByPersonId={string}",
@"FromCreatedDate={string}",
@"ToCreatedDate={string}",
@"Tags={string}",
];
NSString* string = [array componentsJoinedByString:@"&"];
path = [path stringByAppendingFormat:@"?%@", string];
NSLog(@"%@", path);
NSMutableURLRequest* _request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:path]];
[_request setHTTPMethod:@"GET"];
// Request headers
[_request setValue:@"{subscription key}" forHTTPHeaderField:@"Ocp-Apim-Subscription-Key"];
// Request body
[_request setHTTPBody:[@"{body}" dataUsingEncoding:NSUTF8StringEncoding]];
NSURLResponse *response = nil;
NSError *error = nil;
NSData* _connectionData = [NSURLConnection sendSynchronousRequest:_request returningResponse:&response error:&error];
if (nil != error)
{
NSLog(@"Error: %@", error);
}
else
{
NSError* error = nil;
NSMutableDictionary* json = nil;
NSString* dataString = [[NSString alloc] initWithData:_connectionData encoding:NSUTF8StringEncoding];
NSLog(@"%@", dataString);
if (nil != _connectionData)
{
json = [NSJSONSerialization JSONObjectWithData:_connectionData options:NSJSONReadingMutableContainers error:&error];
}
if (error || !json)
{
NSLog(@"Could not parse loaded json with error:%@", error);
}
NSLog(@"%@", json);
_connectionData = nil;
}
[pool drain];
return 0;
}
<?php
// This sample uses the Apache HTTP client from HTTP Components (http://hc.apache.org/httpcomponents-client-ga/)
require_once 'HTTP/Request2.php';
$request = new Http_Request2('https://stg-ecap.azure-api.net/SeliSign/Queries/GetDocumentsToSign');
$url = $request->getUrl();
$headers = array(
// Request headers
'Ocp-Apim-Subscription-Key' => '{subscription key}',
);
$request->setHeader($headers);
$parameters = array(
// Request parameters
'DocumentStatus' => '{integer}',
'SignatureClass' => '{integer}',
'SearchKey' => '{string}',
'PageNumber' => '{integer}',
'PageSize' => '{integer}',
'Sort' => '{integer}',
'SortBy' => '{string}',
'IsArchived' => '{boolean}',
'IsCancelled' => '{boolean}',
'IsOwned' => '{boolean}',
'IsReceived' => '{boolean}',
'IsSigned' => '{boolean}',
'IsUnsigned' => '{boolean}',
'IsSignatoryDetailsAggregated' => '{boolean}',
'IsBulkSignatureDocumentGenerated' => '{boolean}',
'BulkSignatureDocumentId' => '{string}',
'SentByPersonId' => '{string}',
'FromCreatedDate' => '{string}',
'ToCreatedDate' => '{string}',
'Tags' => '{string}',
);
$url->setQueryVariables($parameters);
$request->setMethod(HTTP_Request2::METHOD_GET);
// Request body
$request->setBody("{body}");
try
{
$response = $request->send();
echo $response->getBody();
}
catch (HttpException $ex)
{
echo $ex;
}
?>
########### Python 2.7 #############
import httplib, urllib, base64
headers = {
# Request headers
'Ocp-Apim-Subscription-Key': '{subscription key}',
}
params = urllib.urlencode({
# Request parameters
'DocumentStatus': '{integer}',
'SignatureClass': '{integer}',
'SearchKey': '{string}',
'PageNumber': '{integer}',
'PageSize': '{integer}',
'Sort': '{integer}',
'SortBy': '{string}',
'IsArchived': '{boolean}',
'IsCancelled': '{boolean}',
'IsOwned': '{boolean}',
'IsReceived': '{boolean}',
'IsSigned': '{boolean}',
'IsUnsigned': '{boolean}',
'IsSignatoryDetailsAggregated': '{boolean}',
'IsBulkSignatureDocumentGenerated': '{boolean}',
'BulkSignatureDocumentId': '{string}',
'SentByPersonId': '{string}',
'FromCreatedDate': '{string}',
'ToCreatedDate': '{string}',
'Tags': '{string}',
})
try:
conn = httplib.HTTPSConnection('stg-ecap.azure-api.net')
conn.request("GET", "/SeliSign/Queries/GetDocumentsToSign?%s" % params, "{body}", headers)
response = conn.getresponse()
data = response.read()
print(data)
conn.close()
except Exception as e:
print("[Errno {0}] {1}".format(e.errno, e.strerror))
####################################
########### Python 3.2 #############
import http.client, urllib.request, urllib.parse, urllib.error, base64
headers = {
# Request headers
'Ocp-Apim-Subscription-Key': '{subscription key}',
}
params = urllib.parse.urlencode({
# Request parameters
'DocumentStatus': '{integer}',
'SignatureClass': '{integer}',
'SearchKey': '{string}',
'PageNumber': '{integer}',
'PageSize': '{integer}',
'Sort': '{integer}',
'SortBy': '{string}',
'IsArchived': '{boolean}',
'IsCancelled': '{boolean}',
'IsOwned': '{boolean}',
'IsReceived': '{boolean}',
'IsSigned': '{boolean}',
'IsUnsigned': '{boolean}',
'IsSignatoryDetailsAggregated': '{boolean}',
'IsBulkSignatureDocumentGenerated': '{boolean}',
'BulkSignatureDocumentId': '{string}',
'SentByPersonId': '{string}',
'FromCreatedDate': '{string}',
'ToCreatedDate': '{string}',
'Tags': '{string}',
})
try:
conn = http.client.HTTPSConnection('stg-ecap.azure-api.net')
conn.request("GET", "/SeliSign/Queries/GetDocumentsToSign?%s" % params, "{body}", headers)
response = conn.getresponse()
data = response.read()
print(data)
conn.close()
except Exception as e:
print("[Errno {0}] {1}".format(e.errno, e.strerror))
####################################
require 'net/http'
uri = URI('https://stg-ecap.azure-api.net/SeliSign/Queries/GetDocumentsToSign')
query = URI.encode_www_form({
# Request parameters
'DocumentStatus' => '{integer}',
'SignatureClass' => '{integer}',
'SearchKey' => '{string}',
'PageNumber' => '{integer}',
'PageSize' => '{integer}',
'Sort' => '{integer}',
'SortBy' => '{string}',
'IsArchived' => '{boolean}',
'IsCancelled' => '{boolean}',
'IsOwned' => '{boolean}',
'IsReceived' => '{boolean}',
'IsSigned' => '{boolean}',
'IsUnsigned' => '{boolean}',
'IsSignatoryDetailsAggregated' => '{boolean}',
'IsBulkSignatureDocumentGenerated' => '{boolean}',
'BulkSignatureDocumentId' => '{string}',
'SentByPersonId' => '{string}',
'FromCreatedDate' => '{string}',
'ToCreatedDate' => '{string}',
'Tags' => '{string}'
})
if query.length > 0
if uri.query && uri.query.length > 0
uri.query += '&' + query
else
uri.query = query
end
end
request = Net::HTTP::Get.new(uri.request_uri)
# Request headers
request['Ocp-Apim-Subscription-Key'] = '{subscription key}'
# Request body
request.body = "{body}"
response = Net::HTTP.start(uri.host, uri.port, :use_ssl => uri.scheme == 'https') do |http|
http.request(request)
end
puts response.body