HEAD endpoint to check metadata about file download
curl --request HEAD \
--url https://cloud.bytebeam.io/api/v1/firmwares/{version-number}/artifact \
--header 'x-bytebeam-api-key: <api-key>' \
--header 'x-bytebeam-tenant: <api-key>'import requests
url = "https://cloud.bytebeam.io/api/v1/firmwares/{version-number}/artifact"
headers = {
"x-bytebeam-api-key": "<api-key>",
"x-bytebeam-tenant": "<api-key>"
}
response = requests.head(url, headers=headers)
print(response.text)const options = {
method: 'HEAD',
headers: {'x-bytebeam-api-key': '<api-key>', 'x-bytebeam-tenant': '<api-key>'}
};
fetch('https://cloud.bytebeam.io/api/v1/firmwares/{version-number}/artifact', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://cloud.bytebeam.io/api/v1/firmwares/{version-number}/artifact",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "HEAD",
CURLOPT_HTTPHEADER => [
"x-bytebeam-api-key: <api-key>",
"x-bytebeam-tenant: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://cloud.bytebeam.io/api/v1/firmwares/{version-number}/artifact"
req, _ := http.NewRequest("HEAD", url, nil)
req.Header.Add("x-bytebeam-api-key", "<api-key>")
req.Header.Add("x-bytebeam-tenant", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.head("https://cloud.bytebeam.io/api/v1/firmwares/{version-number}/artifact")
.header("x-bytebeam-api-key", "<api-key>")
.header("x-bytebeam-tenant", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://cloud.bytebeam.io/api/v1/firmwares/{version-number}/artifact")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Head.new(url)
request["x-bytebeam-api-key"] = '<api-key>'
request["x-bytebeam-tenant"] = '<api-key>'
response = http.request(request)
puts response.read_bodyThis response has no body data.devices
Head endpoint to check metadata about file download
HEAD
/
api
/
v1
/
firmwares
/
{version-number}
/
artifact
HEAD endpoint to check metadata about file download
curl --request HEAD \
--url https://cloud.bytebeam.io/api/v1/firmwares/{version-number}/artifact \
--header 'x-bytebeam-api-key: <api-key>' \
--header 'x-bytebeam-tenant: <api-key>'import requests
url = "https://cloud.bytebeam.io/api/v1/firmwares/{version-number}/artifact"
headers = {
"x-bytebeam-api-key": "<api-key>",
"x-bytebeam-tenant": "<api-key>"
}
response = requests.head(url, headers=headers)
print(response.text)const options = {
method: 'HEAD',
headers: {'x-bytebeam-api-key': '<api-key>', 'x-bytebeam-tenant': '<api-key>'}
};
fetch('https://cloud.bytebeam.io/api/v1/firmwares/{version-number}/artifact', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://cloud.bytebeam.io/api/v1/firmwares/{version-number}/artifact",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "HEAD",
CURLOPT_HTTPHEADER => [
"x-bytebeam-api-key: <api-key>",
"x-bytebeam-tenant: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://cloud.bytebeam.io/api/v1/firmwares/{version-number}/artifact"
req, _ := http.NewRequest("HEAD", url, nil)
req.Header.Add("x-bytebeam-api-key", "<api-key>")
req.Header.Add("x-bytebeam-tenant", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.head("https://cloud.bytebeam.io/api/v1/firmwares/{version-number}/artifact")
.header("x-bytebeam-api-key", "<api-key>")
.header("x-bytebeam-tenant", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://cloud.bytebeam.io/api/v1/firmwares/{version-number}/artifact")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Head.new(url)
request["x-bytebeam-api-key"] = '<api-key>'
request["x-bytebeam-tenant"] = '<api-key>'
response = http.request(request)
puts response.read_bodyThis response has no body data.⌘I