Code a User Function for Multiple Things
To code your User Function for multiple things, there are several steps that must occur.
The client_id and client_secret must be the credentials for this set of Things, so an app has to be created for this purpose. Next a Label is generated, and finally the Function can be created.