List app interfaces
curl --request GET \
--url https://api-dev.narrative.io/apps/{app_id}/interfaces \
--header 'Authorization: Bearer <token>'import requests
url = "https://api-dev.narrative.io/apps/{app_id}/interfaces"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api-dev.narrative.io/apps/{app_id}/interfaces', 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-dev.narrative.io/apps/{app_id}/interfaces",
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-dev.narrative.io/apps/{app_id}/interfaces"
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-dev.narrative.io/apps/{app_id}/interfaces")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-dev.narrative.io/apps/{app_id}/interfaces")
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{
"records": [
{
"id": "audience_export",
"name": "Audience Export",
"app_id": 42,
"metadata": {
"tags": [
"advertising",
"audience_delivery"
],
"refresh_schedule": {
"min": null,
"max": "P180D"
}
},
"schema": {
"type": "object",
"properties": {
"audience_name": {
"title": "Audience Name",
"type": "string"
}
},
"required": [
"audience_name"
]
},
"policy": {
"type": "object",
"description": "JSON Schema metaschema over dataset schemas"
}
}
]
}{
"error": "Unauthorized",
"error_description": "You are not authorized to use this endpoint."
}{
"error": "Unauthorized",
"error_description": "You are not authorized to use this endpoint."
}{
"error": "Unauthorized",
"error_description": "You are not authorized to use this endpoint."
}Apps
List app interfaces
Lists a connector app’s interfaces. The app must be installed by the caller’s company. Interfaces are fetched live from the connector’s server, so this call can be slow or fail if the connector is unavailable.
Each interface carries the JSON Schema of its quick settings (schema), used as the quick_settings
object when configuring a connection to the interface, and its collaboration policy (policy), the
metaschema dataset schemas are validated against. Interface ids match those returned by
GET /datasets/{dataset_id}/interfaces.
The optional tags query parameter restricts results to interfaces whose metadata tags intersect the
supplied set (case-insensitive, OR semantics). When omitted, every interface is returned.
GET
/
apps
/
{app_id}
/
interfaces
List app interfaces
curl --request GET \
--url https://api-dev.narrative.io/apps/{app_id}/interfaces \
--header 'Authorization: Bearer <token>'import requests
url = "https://api-dev.narrative.io/apps/{app_id}/interfaces"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api-dev.narrative.io/apps/{app_id}/interfaces', 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-dev.narrative.io/apps/{app_id}/interfaces",
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-dev.narrative.io/apps/{app_id}/interfaces"
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-dev.narrative.io/apps/{app_id}/interfaces")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-dev.narrative.io/apps/{app_id}/interfaces")
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{
"records": [
{
"id": "audience_export",
"name": "Audience Export",
"app_id": 42,
"metadata": {
"tags": [
"advertising",
"audience_delivery"
],
"refresh_schedule": {
"min": null,
"max": "P180D"
}
},
"schema": {
"type": "object",
"properties": {
"audience_name": {
"title": "Audience Name",
"type": "string"
}
},
"required": [
"audience_name"
]
},
"policy": {
"type": "object",
"description": "JSON Schema metaschema over dataset schemas"
}
}
]
}{
"error": "Unauthorized",
"error_description": "You are not authorized to use this endpoint."
}{
"error": "Unauthorized",
"error_description": "You are not authorized to use this endpoint."
}{
"error": "Unauthorized",
"error_description": "You are not authorized to use this endpoint."
}
