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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
WatsonJ
New Member

Get Data from Cisco Spark WebEx Teams via REST API

Hello!!!  I am trying to connect to the Cisco Spark instance for WebEx Teams via their REST API. 

I put the URL and the Authorization header parameter (access token) into the Web connector:

2020-04-15_17-13-12.jpg

After I select the OK button, I get the following error:

2020-04-15_17-18-50.jpg

 

Has anyone seen this error before or been succesful in connecting to the Cisc Spark Webex instance?

1 ACCEPTED SOLUTION
v-eachen-msft
Community Support
Community Support

Hi @WatsonJ ,

 

You could configure the connection manually with m query.

 

let
Source = Json.Document(Web.Contents("insert the URL here you used to in the regular way, and add ", [Headers=[Authorization="Basic insert your token here="]])),
issues = Source[issues],
in
Source 

 

Here is a similar case for your reference:

https://community.powerbi.com/t5/Desktop/REST-API-web-data-source-Authentication-Header-is-gone/m-p/...

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

4 REPLIES 4
v-eachen-msft
Community Support
Community Support

Hi @WatsonJ ,

 

You could configure the connection manually with m query.

 

let
Source = Json.Document(Web.Contents("insert the URL here you used to in the regular way, and add ", [Headers=[Authorization="Basic insert your token here="]])),
issues = Source[issues],
in
Source 

 

Here is a similar case for your reference:

https://community.powerbi.com/t5/Desktop/REST-API-web-data-source-Authentication-Header-is-gone/m-p/...

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

I used your query, but the only thing I changed was the word "basic" to "bearer", which apparently Cisco Spark needs.  As soon as I figured that out, it worked!  Hopefully if anyone searches for the meta tags on this question, they can find this solution useful.  Thanks again!

SteveCampbell
Memorable Member
Memorable Member

What's the authorization flow? From the site it looks there's a couple of ways - does the token have an expiry? It looks like they do, you'll need to generate a valid token first



Did I answer your question? Mark my post as a solution! Proud to be a Super User!


Connect with me!
Stay up to date on  
Read my blogs on  



Greg_Deckler
Super User
Super User

Pretty sure that Anonymous is not the way to go here. Just going to it in a web browser returns:

{"message":"The request requires a valid access token set in the Authorization request header.","errors":[{"description":"The request requires a valid access token set in the Authorization request header."}],"trackingId":"ROUTER_5E9783E2-D7C3-01BB-40F0-18D0D9BE40F0"}

So, I'm guessing Web API and you probably need to generate an access token in same manner.

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.