In the azure functions there is the option of adding function keys
. How do you accept keys other than the default?
https://xxxxxxx.azurewebsites.net/api/webhook?code=kjsdfklhsdf==
where kjsdfklhsdf==
is the default key. how can i use a different key?
Enable or disable fn (function) or action keys modePress the right or left arrow key to select the System Configuration menu. Press the up or down arrow key to select Action Keys Mode. Press the enter key to display the Enabled / Disabled options. Press the up or down arrow key to select one of the options.
The function keys or F keys are lined across the top of the keyboard and labeled F1 through F12. These keys act as shortcuts, performing certain functions, like saving files, printing data, or refreshing a page. For example, the F1 key is often used as the default help key in many programs.
The function keys or F-keys on a computer keyboard, labeled F1 through F12, are keys that have a special function defined by the operating system, or by a currently running program. They may be combined with the Alt or Ctrl keys.
Under your function in the "Manage" section there is UI for adding new keys. Select "Add new function key", give it a name and select "Save" leaving the value empty. A new key will be generated for you.
Once you add a new key, you can simply copy its value and use it as the code
query parameter in your requests.
If your function is a WebHook (as opposed to a regular http function), when using a key other than the default you must also specify the clientId
as a query param (the client ID is the name of your new key):
https://<site>.azurewebsites.net/api/webhook?code=<code>&clientId=<keyName>
This is documented more here in the WebHooks section of our wiki.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With