Ingest SRT radio media
curl --request POST \
--url https://app.govworx.net/api/v1/external/media \
--header 'Content-Type: application/json' \
--data '
{
"recordId": "<string>",
"receivedAt": "2023-11-07T05:31:56Z",
"source": "<string>",
"transcription": {
"hasTranscription": true,
"transcription": {},
"metadata": {}
},
"targetPosition": "<string>",
"talkgroupId": "<string>",
"radioChannelId": "<string>",
"keywords": {},
"vendorData": {},
"vendorAudioWav": "<string>"
}
'import requests
url = "https://app.govworx.net/api/v1/external/media"
payload = {
"recordId": "<string>",
"receivedAt": "2023-11-07T05:31:56Z",
"source": "<string>",
"transcription": {
"hasTranscription": True,
"transcription": {},
"metadata": {}
},
"targetPosition": "<string>",
"talkgroupId": "<string>",
"radioChannelId": "<string>",
"keywords": {},
"vendorData": {},
"vendorAudioWav": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
recordId: '<string>',
receivedAt: '2023-11-07T05:31:56Z',
source: '<string>',
transcription: {hasTranscription: true, transcription: {}, metadata: {}},
targetPosition: '<string>',
talkgroupId: '<string>',
radioChannelId: '<string>',
keywords: {},
vendorData: {},
vendorAudioWav: '<string>'
})
};
fetch('https://app.govworx.net/api/v1/external/media', 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.govworx.net/api/v1/external/media",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'recordId' => '<string>',
'receivedAt' => '2023-11-07T05:31:56Z',
'source' => '<string>',
'transcription' => [
'hasTranscription' => true,
'transcription' => [
],
'metadata' => [
]
],
'targetPosition' => '<string>',
'talkgroupId' => '<string>',
'radioChannelId' => '<string>',
'keywords' => [
],
'vendorData' => [
],
'vendorAudioWav' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.govworx.net/api/v1/external/media"
payload := strings.NewReader("{\n \"recordId\": \"<string>\",\n \"receivedAt\": \"2023-11-07T05:31:56Z\",\n \"source\": \"<string>\",\n \"transcription\": {\n \"hasTranscription\": true,\n \"transcription\": {},\n \"metadata\": {}\n },\n \"targetPosition\": \"<string>\",\n \"talkgroupId\": \"<string>\",\n \"radioChannelId\": \"<string>\",\n \"keywords\": {},\n \"vendorData\": {},\n \"vendorAudioWav\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.govworx.net/api/v1/external/media")
.header("Content-Type", "application/json")
.body("{\n \"recordId\": \"<string>\",\n \"receivedAt\": \"2023-11-07T05:31:56Z\",\n \"source\": \"<string>\",\n \"transcription\": {\n \"hasTranscription\": true,\n \"transcription\": {},\n \"metadata\": {}\n },\n \"targetPosition\": \"<string>\",\n \"talkgroupId\": \"<string>\",\n \"radioChannelId\": \"<string>\",\n \"keywords\": {},\n \"vendorData\": {},\n \"vendorAudioWav\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.govworx.net/api/v1/external/media")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"recordId\": \"<string>\",\n \"receivedAt\": \"2023-11-07T05:31:56Z\",\n \"source\": \"<string>\",\n \"transcription\": {\n \"hasTranscription\": true,\n \"transcription\": {},\n \"metadata\": {}\n },\n \"targetPosition\": \"<string>\",\n \"talkgroupId\": \"<string>\",\n \"radioChannelId\": \"<string>\",\n \"keywords\": {},\n \"vendorData\": {},\n \"vendorAudioWav\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyMedia Ingest
Ingest SRT radio media
POST
/
api
/
v1
/
external
/
media
Ingest SRT radio media
curl --request POST \
--url https://app.govworx.net/api/v1/external/media \
--header 'Content-Type: application/json' \
--data '
{
"recordId": "<string>",
"receivedAt": "2023-11-07T05:31:56Z",
"source": "<string>",
"transcription": {
"hasTranscription": true,
"transcription": {},
"metadata": {}
},
"targetPosition": "<string>",
"talkgroupId": "<string>",
"radioChannelId": "<string>",
"keywords": {},
"vendorData": {},
"vendorAudioWav": "<string>"
}
'import requests
url = "https://app.govworx.net/api/v1/external/media"
payload = {
"recordId": "<string>",
"receivedAt": "2023-11-07T05:31:56Z",
"source": "<string>",
"transcription": {
"hasTranscription": True,
"transcription": {},
"metadata": {}
},
"targetPosition": "<string>",
"talkgroupId": "<string>",
"radioChannelId": "<string>",
"keywords": {},
"vendorData": {},
"vendorAudioWav": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
recordId: '<string>',
receivedAt: '2023-11-07T05:31:56Z',
source: '<string>',
transcription: {hasTranscription: true, transcription: {}, metadata: {}},
targetPosition: '<string>',
talkgroupId: '<string>',
radioChannelId: '<string>',
keywords: {},
vendorData: {},
vendorAudioWav: '<string>'
})
};
fetch('https://app.govworx.net/api/v1/external/media', 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.govworx.net/api/v1/external/media",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'recordId' => '<string>',
'receivedAt' => '2023-11-07T05:31:56Z',
'source' => '<string>',
'transcription' => [
'hasTranscription' => true,
'transcription' => [
],
'metadata' => [
]
],
'targetPosition' => '<string>',
'talkgroupId' => '<string>',
'radioChannelId' => '<string>',
'keywords' => [
],
'vendorData' => [
],
'vendorAudioWav' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.govworx.net/api/v1/external/media"
payload := strings.NewReader("{\n \"recordId\": \"<string>\",\n \"receivedAt\": \"2023-11-07T05:31:56Z\",\n \"source\": \"<string>\",\n \"transcription\": {\n \"hasTranscription\": true,\n \"transcription\": {},\n \"metadata\": {}\n },\n \"targetPosition\": \"<string>\",\n \"talkgroupId\": \"<string>\",\n \"radioChannelId\": \"<string>\",\n \"keywords\": {},\n \"vendorData\": {},\n \"vendorAudioWav\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.govworx.net/api/v1/external/media")
.header("Content-Type", "application/json")
.body("{\n \"recordId\": \"<string>\",\n \"receivedAt\": \"2023-11-07T05:31:56Z\",\n \"source\": \"<string>\",\n \"transcription\": {\n \"hasTranscription\": true,\n \"transcription\": {},\n \"metadata\": {}\n },\n \"targetPosition\": \"<string>\",\n \"talkgroupId\": \"<string>\",\n \"radioChannelId\": \"<string>\",\n \"keywords\": {},\n \"vendorData\": {},\n \"vendorAudioWav\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.govworx.net/api/v1/external/media")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"recordId\": \"<string>\",\n \"receivedAt\": \"2023-11-07T05:31:56Z\",\n \"source\": \"<string>\",\n \"transcription\": {\n \"hasTranscription\": true,\n \"transcription\": {},\n \"metadata\": {}\n },\n \"targetPosition\": \"<string>\",\n \"talkgroupId\": \"<string>\",\n \"radioChannelId\": \"<string>\",\n \"keywords\": {},\n \"vendorData\": {},\n \"vendorAudioWav\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyBody
application/json
Pattern:
[A-Za-z0-9._:-]{1,128}Pattern:
srt|govworxShow child attributes
Show child attributes
Maximum string length:
255Maximum string length:
255Maximum string length:
255Maximum string length:
28000000Response
200
OK
⌘I

