Power bi dynamic api call. Used the API key and secret for authentication.