Make a standard GET request to an external API, including custom headers and query parameters.
Zoho Deluge is powerful because it acts as the glue between Zoho and the rest of the web. Whether you are pulling exchange rates, checking weather data, or syncing contacts with a marketing platform, you need a robust way to fire HTTP GET requests.
The invokeurl task is the backbone of all integrations in Deluge.
Map() object. This is critical for authentication (like passing Bearer tokens).parameters map is automatically serialized into URL query string parameters (e.g., ?status=active). You do not need to manually append them to the URL string.The response variable will automatically cast to a JSON map or list if the endpoint returns valid application/json data. You can immediately begin using response.get("key") without needing to parse it manually!
headerMap = Map();
headerMap.put("Authorization", "Bearer YOUR_TOKEN");
headerMap.put("Content-Type", "application/json");
paramsMap = Map();
paramsMap.put("status", "active");
response = invokeurl
[
url: "https://api.example.com/v1/users"
type: GET
parameters: paramsMap
headers: headerMap
];
info response;