Get the records consumption
import requests
url = "https://{FUSION_HOST}/apps-manager/entitlements/documents/summary"
response = requests.get(url)
print(response.text)HttpResponse<String> response = Unirest.get("https://{FUSION_HOST}/apps-manager/entitlements/documents/summary")
.asString();const options = {method: 'GET'};
fetch('https://{FUSION_HOST}/apps-manager/entitlements/documents/summary', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));require 'uri'
require 'net/http'
url = URI("https://{FUSION_HOST}/apps-manager/entitlements/documents/summary")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodypackage main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{FUSION_HOST}/apps-manager/entitlements/documents/summary"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{FUSION_HOST}/apps-manager/entitlements/documents/summary",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}curl --request GET \
--url https://{FUSION_HOST}/apps-manager/entitlements/documents/summary[
{
"date": "2024-03-25",
"count": 1149994
},
{
"date": "2024-03-26",
"count": 1149994
}
]Get the records consumption
Returns the records consumption for the specified parameters. Each option below returns data for the specified period. Only one option can be used per request. Passing parameters from multiple options returns an error. This endpoint accepts the following options:
-
If no parameters are provided, the current contract period is calculated, then data is returned based on that period.
-
If
startDateandendDateare provided, then the data is returned based on that date range. -
If
licenseIdandperiodIndexare provided, then the data is returned based on that specific period data.
GET
/
entitlements
/
documents
/
summary
Get the records consumption
import requests
url = "https://{FUSION_HOST}/apps-manager/entitlements/documents/summary"
response = requests.get(url)
print(response.text)HttpResponse<String> response = Unirest.get("https://{FUSION_HOST}/apps-manager/entitlements/documents/summary")
.asString();const options = {method: 'GET'};
fetch('https://{FUSION_HOST}/apps-manager/entitlements/documents/summary', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));require 'uri'
require 'net/http'
url = URI("https://{FUSION_HOST}/apps-manager/entitlements/documents/summary")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodypackage main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{FUSION_HOST}/apps-manager/entitlements/documents/summary"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{FUSION_HOST}/apps-manager/entitlements/documents/summary",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}curl --request GET \
--url https://{FUSION_HOST}/apps-manager/entitlements/documents/summary[
{
"date": "2024-03-25",
"count": 1149994
},
{
"date": "2024-03-26",
"count": 1149994
}
]Query Parameters
Was this page helpful?