Get All Controllers
curl --request GET \
--url https://apigw.bienport.com/api/controller/list \
--header 'Authorization: <authorization>' \
--header 'OrganizationId: <organizationid>'import requests
url = "https://apigw.bienport.com/api/controller/list"
headers = {
"Authorization": "<authorization>",
"OrganizationId": "<organizationid>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {Authorization: '<authorization>', OrganizationId: '<organizationid>'}
};
fetch('https://apigw.bienport.com/api/controller/list', 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://apigw.bienport.com/api/controller/list",
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: <authorization>",
"OrganizationId: <organizationid>"
],
]);
$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://apigw.bienport.com/api/controller/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("OrganizationId", "<organizationid>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://apigw.bienport.com/api/controller/list")
.header("Authorization", "<authorization>")
.header("OrganizationId", "<organizationid>")
.asString();require 'uri'
require 'net/http'
url = URI("https://apigw.bienport.com/api/controller/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
request["OrganizationId"] = '<organizationid>'
response = http.request(request)
puts response.read_body{
"active": true,
"controllerClass": {
"active": true,
"className": "<string>",
"controllerUnit": "<string>",
"id": 123
},
"controllerId": 123,
"controllerName": "<string>",
"conversionFormulaX": 123,
"conversionFormulaY": 123,
"createByUser": "<string>",
"createDate": "2023-11-07T05:31:56Z",
"labels": [
{
"active": true,
"labelId": 123,
"labelName": "<string>",
"labelUserId": 123
}
],
"logic0": true,
"precision": "<string>",
"property": "<string>",
"serialDataTypeBigEndian": true,
"valueRangeMax": 123,
"valueRangeMin": 123
}{
"statusCode": 123,
"error": "***Exception",
"message": "Message about the error",
"path": "/api/example/path"
}{
"statusCode": 123,
"error": "***Exception",
"message": "Message about the error",
"path": "/api/example/path"
}This response has no body data.{
"statusCode": 123,
"error": "***Exception",
"message": "Message about the error",
"path": "/api/example/path"
}{
"statusCode": 123,
"error": "***Exception",
"message": "Message about the error",
"path": "/api/example/path"
}Get All Controllers
GET
/
controller
/
list
Get All Controllers
curl --request GET \
--url https://apigw.bienport.com/api/controller/list \
--header 'Authorization: <authorization>' \
--header 'OrganizationId: <organizationid>'import requests
url = "https://apigw.bienport.com/api/controller/list"
headers = {
"Authorization": "<authorization>",
"OrganizationId": "<organizationid>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {Authorization: '<authorization>', OrganizationId: '<organizationid>'}
};
fetch('https://apigw.bienport.com/api/controller/list', 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://apigw.bienport.com/api/controller/list",
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: <authorization>",
"OrganizationId: <organizationid>"
],
]);
$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://apigw.bienport.com/api/controller/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("OrganizationId", "<organizationid>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://apigw.bienport.com/api/controller/list")
.header("Authorization", "<authorization>")
.header("OrganizationId", "<organizationid>")
.asString();require 'uri'
require 'net/http'
url = URI("https://apigw.bienport.com/api/controller/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
request["OrganizationId"] = '<organizationid>'
response = http.request(request)
puts response.read_body{
"active": true,
"controllerClass": {
"active": true,
"className": "<string>",
"controllerUnit": "<string>",
"id": 123
},
"controllerId": 123,
"controllerName": "<string>",
"conversionFormulaX": 123,
"conversionFormulaY": 123,
"createByUser": "<string>",
"createDate": "2023-11-07T05:31:56Z",
"labels": [
{
"active": true,
"labelId": 123,
"labelName": "<string>",
"labelUserId": 123
}
],
"logic0": true,
"precision": "<string>",
"property": "<string>",
"serialDataTypeBigEndian": true,
"valueRangeMax": 123,
"valueRangeMin": 123
}{
"statusCode": 123,
"error": "***Exception",
"message": "Message about the error",
"path": "/api/example/path"
}{
"statusCode": 123,
"error": "***Exception",
"message": "Message about the error",
"path": "/api/example/path"
}This response has no body data.{
"statusCode": 123,
"error": "***Exception",
"message": "Message about the error",
"path": "/api/example/path"
}{
"statusCode": 123,
"error": "***Exception",
"message": "Message about the error",
"path": "/api/example/path"
}Response
SuccessDataResult model Controllers listed.
Show child attributes
Show child attributes
Available options:
Digital, Analog, Serial Show child attributes
Show child attributes
Available options:
Byte, Signedshort, Unsignedshort, Signedint, Unsignedint, Signedlong, Unsignedlong, Float, Double, Boolean, Bytearray, Chararray, String, Date Was this page helpful?
⌘I