cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
484
Views
0
Helpful
2
Replies

WebService - mymakeRequest function with Authorization

Hi,

I came across Webservice finesse sample gadget that used cisco API.  I am trying to add Basic64 Authorization in mymakeRequest function as it is required by the endpoint that it is trying to execute.

Do you have sample codes on to set the Basic64 Authorization in the header?

Thanks,.

Danny

2 REPLIES 2
dekwan
Cisco Employee

Hi Danny,

If you are trying to make an external API request, there is an easier sample gadget to use, the ExternalRestApiSampleGadget.

If I am understanding correctly, you already have the Basic64 authorization and need to know how to add it to the header. If you use the ExternalRestApiSampleGadget, it should be pretty intuitive.

If you want to stick with the webservice gadget, you will need to add it to the header yourself as it seems like the code was written for GETs that doesn't need authorization.

Thanx,

Denise

Thanks for the response and sorry for the late replied.

Danny

Create
Recognize Your Peers
Content for Community-Ad