Open a shared presentation video
curl --request POST \
--url https://pria.praxislxp.com/api/public/presentation-share/resolve \
--header 'Content-Type: application/json' \
--data '
{
"token": "<string>"
}
'import requests
url = "https://pria.praxislxp.com/api/public/presentation-share/resolve"
payload = { "token": "<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({token: '<string>'})
};
fetch('https://pria.praxislxp.com/api/public/presentation-share/resolve', 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://pria.praxislxp.com/api/public/presentation-share/resolve",
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([
'token' => '<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://pria.praxislxp.com/api/public/presentation-share/resolve"
payload := strings.NewReader("{\n \"token\": \"<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://pria.praxislxp.com/api/public/presentation-share/resolve")
.header("Content-Type", "application/json")
.body("{\n \"token\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pria.praxislxp.com/api/public/presentation-share/resolve")
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 \"token\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"share": {
"audience": "public",
"expiresAt": "2023-11-07T05:31:56Z"
},
"presentation": {
"title": "Q3 in 60 seconds"
},
"twin": {
"name": "<string>"
},
"revision": {
"number": 7,
"version": 3,
"rendererVersion": "1.0.0",
"document": {},
"narration": {
"status": "ready",
"timeline": {},
"sceneOffsets": [
123
],
"words": [
{}
]
},
"presenter": {
"status": "<string>",
"queuedAt": "2023-11-07T05:31:56Z",
"startedAt": "2023-11-07T05:31:56Z"
}
},
"media": {
"audio": {
"url": "<string>",
"expiresAt": "2023-11-07T05:31:56Z"
},
"vtt": {
"url": "<string>",
"expiresAt": "2023-11-07T05:31:56Z"
},
"poster": {},
"presenter": {
"url": "<string>",
"expiresAt": "2023-11-07T05:31:56Z"
},
"pictures": {},
"logos": {}
},
"assets": {
"base": "/presentation-renderer/",
"sourceLabels": {}
},
"download": {
"mp4": true,
"vtt": true
}
}{
"success": false,
"code": "SIGN_IN_REQUIRED"
}{
"success": false,
"code": "NOT_FOUND"
}Presentation share links
Open a shared presentation video
Everything the player needs to show the video a share link points to. The token travels in the body, never in an address. Links shared with “people in this Digital Twin” need you to be signed in as a member of that twin. Answers are never cached and never indexed. Call again to get fresh media addresses before they expire. A request body over 4 KB (or not valid JSON) gets the same 404.
POST
/
api
/
public
/
presentation-share
/
resolve
Open a shared presentation video
curl --request POST \
--url https://pria.praxislxp.com/api/public/presentation-share/resolve \
--header 'Content-Type: application/json' \
--data '
{
"token": "<string>"
}
'import requests
url = "https://pria.praxislxp.com/api/public/presentation-share/resolve"
payload = { "token": "<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({token: '<string>'})
};
fetch('https://pria.praxislxp.com/api/public/presentation-share/resolve', 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://pria.praxislxp.com/api/public/presentation-share/resolve",
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([
'token' => '<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://pria.praxislxp.com/api/public/presentation-share/resolve"
payload := strings.NewReader("{\n \"token\": \"<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://pria.praxislxp.com/api/public/presentation-share/resolve")
.header("Content-Type", "application/json")
.body("{\n \"token\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pria.praxislxp.com/api/public/presentation-share/resolve")
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 \"token\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"share": {
"audience": "public",
"expiresAt": "2023-11-07T05:31:56Z"
},
"presentation": {
"title": "Q3 in 60 seconds"
},
"twin": {
"name": "<string>"
},
"revision": {
"number": 7,
"version": 3,
"rendererVersion": "1.0.0",
"document": {},
"narration": {
"status": "ready",
"timeline": {},
"sceneOffsets": [
123
],
"words": [
{}
]
},
"presenter": {
"status": "<string>",
"queuedAt": "2023-11-07T05:31:56Z",
"startedAt": "2023-11-07T05:31:56Z"
}
},
"media": {
"audio": {
"url": "<string>",
"expiresAt": "2023-11-07T05:31:56Z"
},
"vtt": {
"url": "<string>",
"expiresAt": "2023-11-07T05:31:56Z"
},
"poster": {},
"presenter": {
"url": "<string>",
"expiresAt": "2023-11-07T05:31:56Z"
},
"pictures": {},
"logos": {}
},
"assets": {
"base": "/presentation-renderer/",
"sourceLabels": {}
},
"download": {
"mp4": true,
"vtt": true
}
}{
"success": false,
"code": "SIGN_IN_REQUIRED"
}{
"success": false,
"code": "NOT_FOUND"
}Body
application/json
The share token, from the part of the link after # (https://<host>/share#<token>).
Pattern:
^[A-Za-z0-9_-]{43}$Was this page helpful?