Get Installation File
Last updated
Was this helpful?
Was this helpful?
curl --location --request GET '/api/v4/installation_file?product=string&hardware_id=string&license_key=string' \
--header 'Accept: application/json' \
--header 'Date: string' \
--header 'Authorization: string'var request = require('request');
var options = {
method: 'GET',
url: '/api/v4/installation_file?product=string&hardware_id=string&license_key=string',
headers: {
'Accept': 'application/json',
'Date': 'string',
'Authorization': 'string'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});var myHeaders = new Headers();
myHeaders.append("Accept", "application/json");
myHeaders.append("Date", "string");
myHeaders.append("Authorization", "string");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("/api/v4/installation_file?product=string&hardware_id=string&license_key=string", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));import requests
url = "/api/v4/installation_file?product=string&hardware_id=string&license_key=string"
headers = {
"Accept": "application/json",
"Date": "string",
"Authorization": "string"
}
response = requests.get(url, headers=headers)
print(response.text)require "uri"
require "net/http"
url = URI("/api/v4/installation_file?product=string&hardware_id=string&license_key=string")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Accept"] = "application/json"
request["Date"] = "string"
request["Authorization"] = "string"
response = http.request(request)
puts response.read_body{
"installation_file": "https://www.test.io/file/file.bin",
"version": "1.0.2",
"requires_version": null,
"hash_md5": "",
"release_date": "2021-04-30T00:00:00.000Z",
"eula_link": null,
"release_notes_link": null,
"size": null,
"channel": null
}type InstallationFileResponseBody = {
version: string | null,
environment: string,
hash_md5: string | null,
eula_link: string | null,
release_notes_link: string | null,
size: string | null,
requires_version: string | null,
channel: string | null,
installation_file: string | null,
release_date: string | null, // Date string in full ISO 8601 format
}{
"status": number,
"code": "string",
"message": "string"
}{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"status": { "type": "number" },
"code": { "type": "string" },
"message": { "type": "string" }
},
"required": [
"status",
"code",
"message"
],
"additionalProperties": false
}