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
wcameron14
Frequent Visitor

Passing OAuth Credentials Between Calls for A Data Source

I am working with the Twitter Ads API and trying to pull data into Power BI. As best as I can tell from all of the documentation, the Ads API requires multiple calls to access (POST/GET to get the oauth token then POST/GET to get the data). I need to be able to set the response from a call as a variable in the next call in order to access the data. How do I do that? I feel ok about setting the initial credentials (client ID and access token) for the first call but I'm not sure how to do the additional calls.

1 REPLY 1
dax
Community Support
Community Support

Hi @wcameron14 , 

You could refer to get-data-from-twitter-api-with-power-query  and https://community.powerbi.com/t5/Power-Query/Looping-API-Call/td-p/1051251  for details.

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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