How Does Glide Handle POST Requests to Traveltek API with XML Payload and XML Parsing?
Hello Glide Community,
I’m currently working on integrating the Traveltek API (Fusion API) with my Glide App, and I’ve encountered a few challenges regarding POST requests and XML payloads.
The Context:
- The Traveltek API requires sending POST requests with an XML payload that includes user credentials, method actions (like
simplesearch
), and search details (e.g., for flights, hotels, cruises, etc.). - The API responds with XML data, which contains the search results.
In my case, I’ve been able to successfully make API calls using other platforms (like Python) by sending an encoded XML payload and receiving the expected XML response. However, when trying to replicate this within Glide’s API Call feature, I’ve encountered several issues:
-
Invalid Username/Password Error: Using the same payload (which works in Python and on the Traveltek test environment), Glide’s API Call feature returns an “Invalid username or password” error. It seems Glide might be handling the authentication or payload differently.
-
Handling XML Responses: Even if I manage to get the authentication working, Glide doesn’t seem to have a built-in way to parse XML data. I need a method to process the XML response and map the values into the app’s UI or store it for further processing.
My Questions:
-
How does Glide handle POST requests with an XML payload? Are there specific requirements for encoding or structuring XML requests in Glide that differ from how it’s done in tools like Python?
-
Can Glide natively process XML responses? If not, are there any workarounds? I’ve considered using Google Sheets as an intermediary to process the XML and convert it to JSON, but I would prefer a more direct solution if possible.
-
Best Practices for Handling Traveltek API Integration: Has anyone successfully integrated Glide with a similar API that requires XML payloads and returns XML data? I’d appreciate any insights or examples of how to approach this integration.
Looking forward to your thoughts and suggestions!