Quantcast
Channel: All Power Query posts
Viewing all articles
Browse latest Browse all 122283

Re: Two or more API queries - refresh error

$
0
0

I am using this query type for each report, so I could have 10+ queries for one data set.

 

let
 authKey = "{""Username"":""USERNAME"",""Password"":""PASSWORDGOESHERE"",""LocationID"":""LOCATIONIFNEEDED""}",
 url = "https://APILINKGOESHERE.com",
 // Uses the authentication/token method to obtain a token
 GetJson = Web.Contents(url,
     [
         Headers = [#"Content-Type"="application/json"],
         Content = Text.ToBinary(authKey),
         RelativePath="/Authentication/AuthorizeUser"
     ]
 )
in
    GetJson

 


Viewing all articles
Browse latest Browse all 122283

Trending Articles