cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
316
Views
0
Helpful
2
Replies
Highlighted
Beginner

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

Everyone's tags (4)
2 REPLIES 2
Highlighted
Cisco Employee

Re: WebService - mymakeRequest function with Authorization

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

Highlighted
Beginner

Re: WebService - mymakeRequest function with Authorization

Thanks for the response and sorry for the late replied.

Danny

This widget could not be displayed.