Send json in urlfetch

Asked May 18, 2021·4 replies·Last activity 5 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

Hi
Is there possibility of sending POST request with JSON using urlfetch?
Where can I find Nightbot tutorials?

4 replies

Thank you. I changed my api to respect GET request, so I can use urlfetch.
Just out of curiosity, how to make request in $(eval) using js? I have tried xmlhttprequest and node's http and both are undefined

Gerhard said:
...but the script execution time is only 1 second...

Heya! I was thinking about this only, I mean to make POST requests, I want to ask what ...1 second... actually means?

Hey @Maple Goose!

It means that your code's execution time must be under 1 second, if it goes beyond that Nightbot will timeout the eval.