Controllers
Get controller
Return the controller’s metadata, location, and registered readers (requires a controller token).
GET
/
terminal
/
controller
Get controller
curl --request GET \
--url https://api.authsignal.com/v1/terminal/controller \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.authsignal.com/v1/terminal/controller"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.authsignal.com/v1/terminal/controller', 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://api.authsignal.com/v1/terminal/controller",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://api.authsignal.com/v1/terminal/controller"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.authsignal.com/v1/terminal/controller")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.authsignal.com/v1/terminal/controller")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"controllerId": "2d8e4b90-7c1a-4f3b-9e6d-5a4c3b2f1e0d",
"name": "Front Bar iPad",
"location": {
"terminalLocationId": "3f6c2a9e-1b7d-4e8a-9c52-7a1d0e4b8f13",
"name": "Auckland"
},
"terminals": [
{
"terminalId": "5b0f3c1e-8d2a-4c4e-9a51-2f7d6c1b9e40",
"name": "Bar 2"
}
]
}{
"error": "verification_in_progress",
"errorCode": "verification_in_progress",
"errorDescription": ""
}{
"error": "verification_in_progress",
"errorCode": "verification_in_progress",
"errorDescription": ""
}Authorizations
Was this page helpful?
⌘I
Get controller
curl --request GET \
--url https://api.authsignal.com/v1/terminal/controller \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.authsignal.com/v1/terminal/controller"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.authsignal.com/v1/terminal/controller', 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://api.authsignal.com/v1/terminal/controller",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://api.authsignal.com/v1/terminal/controller"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.authsignal.com/v1/terminal/controller")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.authsignal.com/v1/terminal/controller")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"controllerId": "2d8e4b90-7c1a-4f3b-9e6d-5a4c3b2f1e0d",
"name": "Front Bar iPad",
"location": {
"terminalLocationId": "3f6c2a9e-1b7d-4e8a-9c52-7a1d0e4b8f13",
"name": "Auckland"
},
"terminals": [
{
"terminalId": "5b0f3c1e-8d2a-4c4e-9a51-2f7d6c1b9e40",
"name": "Bar 2"
}
]
}{
"error": "verification_in_progress",
"errorCode": "verification_in_progress",
"errorDescription": ""
}{
"error": "verification_in_progress",
"errorCode": "verification_in_progress",
"errorDescription": ""
}
