![]() |
Any extension that can do HTTP post requests? - Printable Version +- Small Basic Forum (https://litdev.uk/mybb) +-- Forum: Small Basic (https://litdev.uk/mybb/forumdisplay.php?fid=1) +--- Forum: Extensions (https://litdev.uk/mybb/forumdisplay.php?fid=3) +--- Thread: Any extension that can do HTTP post requests? (/showthread.php?tid=284) |
Any extension that can do HTTP post requests? - Yumda - 04-04-2025 Hi there: Just want to know if there are extension that can allow small basic to do HTTP post request, specifically with JSON bodies or custom headers? OR if not, what would be possible work around? ( Hopefully not to complicated...) Thanks for all the help. Regards Yumda RE: Any extension that can do HTTP post requests? - litdev - 04-04-2025 Hi Yumda, Fairly recently I added LDNetwork.SendWebRequest and LDNetwork.SendWebRequestAsync. You can send an HTTP request and get back a response. At the moment you would have to parse the JSON response in some way (its just a string). Parsing JSON is a bit case dependent and a general parser implementation might be a bit beyond LD extension - is there something specific you are trying to do? For example we use this with the 3D browser robot controller, see some of the examples there - https://litdev.uk/mybb/showthread.php?tid=223. RE: Any extension that can do HTTP post requests? - z-s - 04-04-2025 I added few days back HTTP and a json lib using newtonsoft.json which could serialize and create basic json I will test it then publish RE: Any extension that can do HTTP post requests? - Yumda - 04-05-2025 Hi Litdev: What I am trying to do is write a program to help my kids learn Japanese, including listening short passages. I could do one word at a time and download the audio one by one, but that is a very slow way of doing it. however, if a program can do it in batch and automatically then it would be faster. https://www.narakeet.com/app/text-to-audio/?projectId=7a14dfad-81c4-4e7e-bc8e-d35af72bc1b4 https://www.narakeet.com/docs/automating/ the free site I found for this purpose are: https://ttsmp3.com/text-to-speech/Japanese/ https://ttsmaker.com/ Not sure which site would fit with the existing extension... there are other site which offer free as well, but it all require user input one world/sentences at a time and generate one by one. An automation would be quicker... Regards Yumda RE: Any extension that can do HTTP post requests? - litdev - 04-05-2025 Hi Yumda, Interesting project - my initial thoughts. 1] I assume that you have the phrases already in Japanese, this is not a translation project as well. 2] I can't see any of the suggested links you gave that suggest that there may be a free API that can be called programatically. 3] Have you had a look at installing MS language packs - the advantage of downloading it to your PC is that it may be possible to interact wirthout web calls. Narrator, Language packs, Also look at LDSpeech and set culture with LDUtilities.CurrentCulture once Japanese is installed. |