How do I do a Homey Script for this?

Why not use a Logic card, if you just have to make an HTTP request you don’t need HomeyScript.