Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 1 | |
| 1 | |
| 1 |