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

WebService - mymakeRequest function with Authorization

joycentiong
Level 1
Level 1

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
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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: