Send a "1" for 3 seconds then send "0" over Blynk-Cloud

How can I? Basically I want to send an http request to function as a button not a switch. I’m trying to set up an infrared LED to turn my TV on/off via Google Assistant, via IFTTT, and an Arduino, and everything’s working great, apart from the fact that once the LED starts it never stops again. How can I make it stop again? In the Blynk app I can create a button that acts as a momentary button and that works fine - how can I do that via Blink-Cloud?

I tried having the Arduino make an http request to set the pin back to 0, but it only sort-of sometimes works.

My code so far (it’s messy, it’s not done):

https://pastebin.com/yXYPuJp7

This would work fine if I used a relay instead of an LED, but why use a relay when an LED will suffice?

Whelp, I figured it out - haha

Here’s the code. https://pastebin.com/4s6T02Nn

I got the Arduino to properly send a 0 back to the server during the loop.