I’m currently trying to integrate the Cyanite AI to Touchdesigner. The AI works with an GraphQL API via Bearer format.
I already tried to integrate the API via the Web Client DAT, but unfortunately it looks like the authentication format Bearer is not supported in Touchdesigner (see attachment).
Should it be possible to integrate the API via Python?
(I’ve worked some time with Touchdesigner, but I’m pretty new to Python)
The second input is the data/parameters to send in the request. This can be a table with two columns, structured as name/value pairs. It can also just be text, in which case it will be sent as is. If the request method doesn’t have a request body (eg. GET, OPTIONS) then it will append the input to the URL as query parameters if a table, otherwise it will be sent as the request data.
Try passing your query (which should follow the Cyanite AI doc) from a Text DAT connected to the second input of the WebClient DAT.
You could have a look at the details of the error message that the Cyanite API returned, if any. Maybe there are details about what message they are expecting in the API documentation.