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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
vwiles84
Helper III
Helper III

API-Secret, Key and Token

 I am trying to configure my query to pull data from an API.  I have the API address, secret and key.  When I send the secret and key, my answer back is a token (amongst other pieces of information).  I then have to take the token from the first call and authenticate again with a user name and password to obtain the actual data I need for the dashboard report.  Any suggestions on how to code this so it is automatic? 

4 REPLIES 4
amitchandak
Super User
Super User

@vwiles84 , Not very clear, check if you are looking for

https://docs.microsoft.com/en-us/power-bi/developer/automation/walkthrough-push-data-get-token

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Not really,

Basically my API requires me to send a security call with the API Secret and Key.  In the response from that call, i get a login TOKEN.  I then have to make another call with that token and pass it with my website username and password using the API call of the full sales data. 

So the first call output looks like this:

"SellerId": XX,
"sellertoken": "ACTUAL TOKEN REMOVED",
"loginBadLoginCnt": 0,
"sellerEnabled": true,
"loginEnabled": true,
"loginFullName": "NAME REMOVED",
"loginPassword": null,
"SellerCompanyName":
"SellerUseAdvancedCategorySelector": false,
"SellerUseAdvancedItemForm": false,
"SellerUseMultiImageUploader": false,
"loginCustomerService": true,
"loginReceiveTicketEmail": false,
"PickupSchedulingEnabled": false,
"PickupDaysOut": null,
"PickupAdvanceDays": null,
"PickupChangeDays": null,
"PickupMaxItemsPerAppointment": null,
"FedExAccountNumber": null,
"FedExMeterNumber": null,
"FedExKey": null,
"FedExPassword": null,
"AzureQueueName": "u",
"ApiKeyID": "",
"ApiSecretKey": "",
"Error": null
}
 
What I don't know how to do is make this call in Power BI, capture the seller token, then use the seller token in the next call to get the sales data. 

Sorry, but these links did not help. 😕  I've switched to another dashboard creation so I will come back to this when i am able to try again. thanks for your help. 

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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