Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Tnerkar1622809383
Contributor
Contributor

Getting Error in using contexts in trestclient queri parameter

Hii,

I am trying to retrieve data from webservice using trestclient. I want to use contexts in parameters of component trestclient. I have tried all the ways. Please see the screenshots attached. Anyone have a good solution?

Labels (3)
12 Replies
gjeremy1617088143

cowin API are restricted to be accessed only in INDIA

gjeremy1617088143

if you are in india you can use :

key:User-Agent Value:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36 Edg/90.0.818.51

in the header

gjeremy1617088143

if context not working : you can try to affect context var to globalvar and then use globalvar in the trestclient

:

in a tjava

globaMap.put("district_id",context.District);

 

in the trestclient parameter value :

(String)globalMap.get("district_id")