Curl
Java
Python
Deluge
PowerShell
Copied!
curl --request GET \
--url 'https://appdomains/dcapi/customColumn/udtNameExists?udtName=SOME_STRING_VALUE' \
--header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \
--header 'Content-Type: application/udtExistsDetails.v1+json'import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.io.IOException;
import java.net.http.HttpTimeoutException;
public class Main {
public static void main(String[] args) {
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://appdomains/dcapi/customColumn/udtNameExists?udtName=SOME_STRING_VALUE"))
.header("Content-Type", "application/udtExistsDetails.v1+json")
.header("Authorization", "Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
}
}
import http.client
conn = http.client.HTTPSConnection("appdomains")
headers = {
'Content-Type': "application/udtExistsDetails.v1+json",
'Authorization': "Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52"
}
conn.request("GET", "/dcapi/customColumn/udtNameExists?udtName=SOME_STRING_VALUE", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
parameters = "udtName=value";
headersMap = Map();
headersMap.put("Content-Type", "application/udtExistsDetails.v1+json");
headersMap.put("Accept", "application/json");
response = invokeUrl
[
url: "https://appDomains/dcapi/customColumn/udtNameExists" + "?" + parameters
type: GET
headers: headersMap
connection: connection_name
]
info response;
$headers=@{}
$headers.Add("Content-Type", "application/udtExistsDetails.v1+json")
$headers.Add("Authorization", "Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52")
$response = Invoke-WebRequest -Uri 'https://appdomains/dcapi/customColumn/udtNameExists?udtName=SOME_STRING_VALUE' -Method GET -Headers $headers