Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
DionTN
Helper II
Helper II

Connect with API Oauth

Hi,

 

I have an API :

curl --location --request GET 'https://api.typeform.com/forms/ecTbgcrP/responses' \
--header 'Authorization: tfp_KNzKHoGB1jDiiiTsttoNLF7Jf2MdYa4SWfuQexGJvX7_e4s2bwBcZnE4'

Now i want to read this API with this authorization in power bi query.

I tried the following but its not working unfortunately;

let
    Source = Json.Document(Web.Contents("https://api.typeform.com/forms/ecTbgcrP/responses", [Headers = [Authorization = "tfp_KNzKHoGB1jDiiiTsttoNLF7Jf2MdYa4SWfuQexGJvX7_e4s2bwBcZnE4"]]
    ))
in
    Source

 

How can i fix this?

3 REPLIES 3
lbendlin
Super User
Super User

Check the API documentation again.  Authorization should say something like Basic or Bearer  etc.

@lbendlin It's a Oauth2.0 authorization. So I have a token. How do i need to implement this? 

Use "Bearer " (with space) and your token.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors