Get a given display's configuration
curl --request GET \
--url https://b.anny.co/api/v1/displays/{mac_address}import requests
url = "https://b.anny.co/api/v1/displays/{mac_address}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://b.anny.co/api/v1/displays/{mac_address}', 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://b.anny.co/api/v1/displays/{mac_address}",
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;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://b.anny.co/api/v1/displays/{mac_address}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://b.anny.co/api/v1/displays/{mac_address}")
.asString();require 'uri'
require 'net/http'
url = URI("https://b.anny.co/api/v1/displays/{mac_address}")
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_body{
"data": {
"id": "string",
"type": "displays",
"attributes": {
"mac_adress": "string",
"name": "string",
"width": 0,
"heigth": 0,
"orientation": "landscape",
"locale": "string",
"battery_level": 0,
"temperature": 0,
"version": "string",
"config": {
"wifi_rssi": "string",
"wifi_ssid": "string",
"last_seen_at": "2019-08-24T14:15:22Z",
"restartReason": 0,
"initially_seen_at": "2019-08-24T14:15:22Z"
},
"layout": "default",
"last_synced_at": "2019-08-24T14:15:22Z",
"anonymize": true,
"created_at": "2019-08-24T14:15:22Z"
},
"meta": {
"is_paired": true,
"has_resource": true,
"update_available": true
},
"relationships": {
"resources": {
"id": "string"
},
"owner": {
"id": "string"
},
"display_type": {
"id": "string"
}
},
"links": {
"self": "http://example.com"
}
}
}Displays
Get a given display's configuration
GET
/
api
/
v1
/
displays
/
{mac_address}
Get a given display's configuration
curl --request GET \
--url https://b.anny.co/api/v1/displays/{mac_address}import requests
url = "https://b.anny.co/api/v1/displays/{mac_address}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://b.anny.co/api/v1/displays/{mac_address}', 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://b.anny.co/api/v1/displays/{mac_address}",
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;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://b.anny.co/api/v1/displays/{mac_address}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://b.anny.co/api/v1/displays/{mac_address}")
.asString();require 'uri'
require 'net/http'
url = URI("https://b.anny.co/api/v1/displays/{mac_address}")
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_body{
"data": {
"id": "string",
"type": "displays",
"attributes": {
"mac_adress": "string",
"name": "string",
"width": 0,
"heigth": 0,
"orientation": "landscape",
"locale": "string",
"battery_level": 0,
"temperature": 0,
"version": "string",
"config": {
"wifi_rssi": "string",
"wifi_ssid": "string",
"last_seen_at": "2019-08-24T14:15:22Z",
"restartReason": 0,
"initially_seen_at": "2019-08-24T14:15:22Z"
},
"layout": "default",
"last_synced_at": "2019-08-24T14:15:22Z",
"anonymize": true,
"created_at": "2019-08-24T14:15:22Z"
},
"meta": {
"is_paired": true,
"has_resource": true,
"update_available": true
},
"relationships": {
"resources": {
"id": "string"
},
"owner": {
"id": "string"
},
"display_type": {
"id": "string"
}
},
"links": {
"self": "http://example.com"
}
}
}⌘I