Api event share get viewer input: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
Server@tygron.com (talk | contribs)
Created page with "API Endpoint: api/event/share/get_viewer_input/ Description: Get viewer content array for given path. {|class=wikitable !Index !Importance !Type !Description !Values |- | 0 | REQUIRED | (String) | Path (note: viewers end with a slash e.g. "mydir/viewer/") | |} ===Response Codes=== {|class=wikitable !Response Code: !Description |- | 200 | String[] (Array of viewer input shareables.) |- | 300-600 | Codes Overview |} ===Example POST=== Curl example POST <syntaxhighlight..."
 
Server@tygron.com (talk | contribs)
No edit summary
Line 28: Line 28:
|}
|}
===Example POST===
===Example POST===
Curl example POST
<syntaxhighlight lang="text" copy>curl 'https://devshare.tygron.com/api/event/share/get_viewer_input/' -H 'Content-Type: application/json' -H 'Authorization: Basic <credentials>=' -d '"Path"'
</syntaxhighlight>
JavaScript example POST
<syntaxhighlight lang="text" copy>var options = {
 method: "POST",
 headers: { "Content-Type": "application/json", "Authorization": "Basic <credentials>=" },
 body: '"Path"'
};
fetch("https://devshare.tygron.com/api/event/share/get_viewer_input/", options)
 .then(response => response.text())
 .then(result => console.log(result))
 .catch(error => console.log('error', error));
</syntaxhighlight>
{{article end|seealso=*[[Api event share]]
{{article end|seealso=*[[Api event share]]
}}
}}


[[Category:API]]
[[Category:API]]

Revision as of 15:11, 20 November 2026

API Endpoint: api/event/share/get_viewer_input/

Description: Get viewer content array for given path.

Index Importance Type Description Values
0 REQUIRED (String) Path (note: viewers end with a slash e.g. "mydir/viewer/")

Response Codes

Response Code: Description
200 String[] (Array of viewer input shareables.)
300-600 Codes Overview

Example POST

See also