UI Kit
Calling Functions
Once you have a DroneDeploy Function defined and deployed, you might want to call the Function from your App's UI. We have built App APIs to make this very easy.
First, you want to get the URL of the Function. You can do this by passing in the Function's name into the following API.
Second, you will want to get a scoped JWT token. This provides authentication and authorization when calling your Function and also provides your Function with a token to make further calls to our APIs. You will set the returned JWT as the Bearer Token for your request.
Finally, here's an example of what your UI app code might look like when calling a function:
You can see how this all works in our sample app.
Last updated