Genel formu getir
curl --request GET \
--url https://app.azalt.co/api/v1/forms/public/{formSiteId}import requests
url = "https://app.azalt.co/api/v1/forms/public/{formSiteId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://app.azalt.co/api/v1/forms/public/{formSiteId}', 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://app.azalt.co/api/v1/forms/public/{formSiteId}",
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://app.azalt.co/api/v1/forms/public/{formSiteId}"
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://app.azalt.co/api/v1/forms/public/{formSiteId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.azalt.co/api/v1/forms/public/{formSiteId}")
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{
"id": "<string>",
"name": "<string>",
"organizationId": "<string>",
"description": "<string>",
"isPublic": true,
"year": 123,
"siteId": "<string>",
"elements": [
"<unknown>"
],
"hideFuturePeriods": true,
"metadata": "<unknown>",
"settings": null
}{
"code": "BAD_REQUEST",
"message": "Invalid input data",
"issues": []
}{
"code": "NOT_FOUND",
"message": "Not found",
"issues": []
}{
"code": "INTERNAL_SERVER_ERROR",
"message": "Internal server error",
"issues": []
}Form
Genel formu getir
Kimlik doğrulaması olmadan dış veri toplamak için form yapılandırmasını döndürür.
Parametreler:
formSiteId: Form ve tesis kombinasyonunu temsil eden benzersiz kimlikpassword: Form parola korumalıysa opsiyonel parola
Yanıt şunları içerir:
- Formun tamamı (başlık, açıklama, talimatlar)
- Tüm öğelerin tipleri, doğrulama kuralları ve seçenekleri
- Öğeler arasındaki koşullu görünürlük mantıkları
- Gönderim ayarları ve gereksinimler
Kullanım senaryoları:
- Tedarikçilerden veya paydaşlardan çevresel veri toplamak
- Kimlik doğrulaması gerektirmeyen sürdürülebilirlik anketleri
- Çoklu organizasyondan uyum raporlaması
- Dış tesislerden veri toplamak
Güvenlik özellikleri:
- Opsiyonel parola koruması
- İstismar önleme için hız sınırlandırma
- Organizasyon seviyesinde erişim kontrolleri
GET
/
forms
/
public
/
{formSiteId}
Genel formu getir
curl --request GET \
--url https://app.azalt.co/api/v1/forms/public/{formSiteId}import requests
url = "https://app.azalt.co/api/v1/forms/public/{formSiteId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://app.azalt.co/api/v1/forms/public/{formSiteId}', 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://app.azalt.co/api/v1/forms/public/{formSiteId}",
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://app.azalt.co/api/v1/forms/public/{formSiteId}"
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://app.azalt.co/api/v1/forms/public/{formSiteId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.azalt.co/api/v1/forms/public/{formSiteId}")
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{
"id": "<string>",
"name": "<string>",
"organizationId": "<string>",
"description": "<string>",
"isPublic": true,
"year": 123,
"siteId": "<string>",
"elements": [
"<unknown>"
],
"hideFuturePeriods": true,
"metadata": "<unknown>",
"settings": null
}{
"code": "BAD_REQUEST",
"message": "Invalid input data",
"issues": []
}{
"code": "NOT_FOUND",
"message": "Not found",
"issues": []
}{
"code": "INTERNAL_SERVER_ERROR",
"message": "Internal server error",
"issues": []
}
