Needed helps on html button to trigger a function

Hi @Genius

Please take a look at this (older) tutorial, particularly the HTML/Javascript part.

First off, you probably need to load JQuery to use $.post.

Second, your URL format is not correct for a POST request to call a function. You should have just the function name "led" at the end of the URL. You are already passing the access_token in the parameters.

1 Like