For the original poster (OP) to fill in:
Introduction
We have APIs that require sending a body formatted as a JSON. Currently the field “Data to add to this request” changes the data to URl encoded characters, causing the request to fail.
User Story
guardicore, Cisco, and others require a JSON (JWT) formatted body to get a response back.
url: https://guardicore_endpoint/api/v3.0/authenticate
body: {"username": "<username>", "password": "<password>"}
URL: https:// api.us.etd.cisco.com/v1/messages/search
body: '{"timestamp":["2023-04-01T09:34:05.361Z","2023-04-19T17:34:05.361Z"]}'
Any chance for this to make it into the next release?
sasch90
December 2, 2024, 11:19pm
3
This would be really great! No chance to use it with a “real” post request
or did you find a workaround @jschoenstein ?
Other users aksed also about it before:
Introduction
We have an api from a customer and want to access this api through the dataset.
User Story
We want to display the data from the API to the costumer.
Implementation
We want to have an function in the dataset collector so there is a possibility to send a JSON body when making a POST request.
Had this already investigated with @DanBW in the topic:
https://community.xibo.org.uk/t/re-dataset-api-json-post-failure/24769/19
Impacted Software
Remote dataset API.
(if this is an not com…
To be completed by the original poster:
CMS Version
2.3.8
Player Type
Linux
Player Version
1.8R6
Issue
I am trying to use a POST request to obtain JSON-formatted data from a server. However, my request needs
ONE parameter which is transmitted via the URL (telling the server that I’d like to have data in JSON format, i. e. the URL is http://www.myserver.net/file.php?format=json )
A large block of data which is transmitted via POST and also, like the return data, formatted as JSON.
In XIBO, …
The best I’ve come up with is to run the command via powershell or bash, and import the data into the CMS using Xibo’s API. Unfortunately the import API doesn’t work in my Windows/Apache environment.