Closed LionelBLANCHET closed 5 months ago
Does anyone have an idea to retrieve the JSON result of a call to web services via a script? Thank you in advance for your assistance...
I finally found my error... In the Quicktext.get_url call you should not use a pipe but the following syntax:
var order = await this.mQuicktext.get_url(["https://www.mywebsite.com/api/orders/9456?ws_key=NFKJDFKJFQD54DQ65F4Q6&output_format=JSON","get"]);
If this helps anyone...
In a template, I use the syntax
and it works perfectly. When using the model I retrieve in text mode the JSON content returned by the url in the email composition window.
Now I write a script named "Prestashop" which calls the same URL.
And in a template, I call this script via [[SCRIPT=Prestashop]] Problem: when I use this template (which itself calls the script), I get nothing in the email composition window
Where did I make a mistake?
Thunderbird version 115.9.0 / Quicktext version 5.14 / Windows 11 pro 23H2