Help with a URL Post

Hey all,

Need some help “posting” a URL in a smart app. Basically I am trying to turn off my Foscams video feed using a URL from their API. I have the URL and i have tested it to be working through a regular web browser and it does work. So basically i just need some guidance. I just need this URL to “run” when the smart app does. Any help is always appreciated!

FOSCAMURLHERE/set_forbidden.cgi?schedule_enable=1&schedule_sun_0=-1&schedule_sun_1=-1&schedule_sun_2=-1&
schedule_mon_0=-1&schedule_mon_1=-1&schedule_mon_2=-1&schedule_tue_0=-1&
schedule_tue_1=-1&schedule_tue_2=-1&schedule_wed_0=-1&schedule_wed_1=-1&schedule_wed_2=-1&
schedule_thu_0=-1&schedule_thu_1=-1&schedule_thu_2=-1&schedule_fri_0=-1&schedule_fri_1=-1&
schedule_fri_2=-1&schedule_sat_0=-1&schedule_sat_1=-1&schedule_sat_2=-1&user=*********&pwd=***********

This URL is all one piece had tp split it to get it to fit.

Help:):):):slight_smile:

Thanks!

@tslagle13 - you can read the documentation for httpGet() here:
https://graph.api.smartthings.com/ide/doc/smartApp

Be aware that this is executed from the SmartThings API - so the endpoint must be publicly accessible. That isn’t always ideal, so there are means to fire this event locally - but it’s very early in development currently.