THird Party APIS Integration
how can we add third party apis in geocortex like i have a software abc which has apis with which i want to interact then how can i send parameters with geocortex and get back result and show them on map along with data
0
-
Hi Raghav,
Are you talking about adding third party libraries?
Which version of Geocortex Viewer are you using?
Regards,
Mohammad Ashraf0 -
Hi Ashraf
Currently i am using 4.6.2 , Yeah, currenlty i am working for scenario in case we want to communicate with third party library which provides rest api how can we do that with geocortex ?0 -
Hi there, to add weight to this request, I too would like to find some documentation or understanding how to call 3rd party APIs from within a geocortex workflow. I am using the latest Essentials 4.9 0 -
The exact requirements/method are going to different depending on what kind of data your api returns, and how that relates back to your map/data.
As an example though, if you have a simple REST api that returns some JSON, you can use the WebRequest activity in a workflow. There's an sample for this activity in the workflow sample site that ships with Essentials ("C:\Program Files (x86)\Latitude Geographics\Geocortex Essentials\Default\REST Elements\Sites\Workflow_Samples\Resources\Workflows\Common Server\WebRequest.xaml")
Then you can use the GetTextFromBytes activity to convert the bytes returned into a string, and use that string in the GetJSONValue or JSONToDictionary activity to find the actual values that you want from the JSON.0
Please sign in to leave a comment.
Comments
4 comments