Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I'm trying to bring tables through the hotmart API but I'm not succeeding, does anyone know how to solve it? I believe my code is wrong
Solved! Go to Solution.
HI @BIUser22232.
You can try to use the following codes if it suitable for your requirement::
let
url = "api-sec-vlc.hotmart.com",
token = "xxxxx",
response = Web.Contents(
url,
[
RelativePath = "/security/oauth/token",
Headers = [
Authoraztion = "Basic " & token,
#"Content-Type" = "application/json"
],
Query = [
grant_type = "client_credentials",
client_id = "id string",
client_secret = "secret string"
]
]
),
AccessToken = Json.Document(response)[access_token]
in
AccessToken
Regards,
Xiaoxin Sheng
HI @BIUser22232.
You can try to use the following codes if it suitable for your requirement::
let
url = "api-sec-vlc.hotmart.com",
token = "xxxxx",
response = Web.Contents(
url,
[
RelativePath = "/security/oauth/token",
Headers = [
Authoraztion = "Basic " & token,
#"Content-Type" = "application/json"
],
Query = [
grant_type = "client_credentials",
client_id = "id string",
client_secret = "secret string"
]
]
),
AccessToken = Json.Document(response)[access_token]
in
AccessToken
Regards,
Xiaoxin Sheng
User | Count |
---|---|
8 | |
7 | |
2 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
4 |