Skip to main content
GET
/
alarm
/
ecl
/
{subscriptionId}
Get Emergency Contact
curl --request GET \
  --url https://apigw.bienport.com/api/alarm/ecl/{subscriptionId} \
  --header 'Authorization: <authorization>' \
  --header 'OrganizationId: <organizationid>'
import requests

url = "https://apigw.bienport.com/api/alarm/ecl/{subscriptionId}"

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/alarm/ecl/{subscriptionId}', 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/alarm/ecl/{subscriptionId}",
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/alarm/ecl/{subscriptionId}"

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/alarm/ecl/{subscriptionId}")
.header("Authorization", "<authorization>")
.header("OrganizationId", "<organizationid>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://apigw.bienport.com/api/alarm/ecl/{subscriptionId}")

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
[
  {
    "id": 1240645,
    "zoneNo": 1,
    "zoneName": "Ahmet Boyraz",
    "alarmCode": "Turan Barlak",
    "note": "Müdür",
    "telefon1": "5326629166",
    "telefon2": "5326629166",
    "telefon3": "5326629166",
    "telefon4": "5326629166",
    "subscriptionId": 7239,
    "isPerson": true,
    "state": "pending"
  }
]
{
"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"
}

Headers

Authorization
string
required

Access Token

OrganizationId
string
required

Organization ID

Path Parameters

subscriptionId
integer<int64>
required

subscriptionId

Response

success

id
integer<int64>

Zone id.

Example:

1240645

zoneNo
integer<int32>

Zone no.

Example:

1

zoneName
string

Zone name

Example:

"Ahmet Boyraz"

alarmCode
string

Alarm Code

Example:

"Turan Barlak"

note
string

note

Example:

"Müdür"

telefon1
string
Example:

"5326629166"

telefon2
string
Example:

"5326629166"

telefon3
string
Example:

"5326629166"

telefon4
string
Example:

"5326629166"

subscriptionId
integer<int64>

subscription id.

Example:

7239

isPerson
boolean
Example:

true

state
enum<string>
Available options:
pending,
existing
Example:

"pending"