I am writing an Azure Function (trying) to fetch data from an external API to be returned to Power BI. I started with the code mentioned on this page, but there appears to be a few things left out, such as the definition of the Tokens/Token classes. I've been fiddling around with it for a few hours now, and just cannot get this to work properly.
I have created the class Tokens, but another class (Token, singular) is referenced elsewhere. I've created a fiddle with what I have so far, it's a bit broken as dotnetfiddle doesn't seem to work nice with Azure Functions.