void API.FileSearch()
{
TeamID="n8gep5faacf7a854a4a5f83d1b75xxxxxxxx"
Token = thisapp.API.GetAccessToken();
TokenText = "Zoho-oauthtoken " + Token;
headerMap = Map();
headerMap.put("Accept","application/vnd.api+json");
headerMap.put("Authorization",TokenText);
urlstring = "https://workdrive.zoho.com/api/v1/teams/"+TeamID+"/records?search%5Ball%5D=590582.pdf";
resp = invokeurl
[
url :urlstring
type :GET
headers:headerMap
detailed:true
connection:"workdrive"
];
info resp;
}
result:
{"responseText":{"data":[]},"responseHeader":{"date":"Sat, 07 Aug 2021 17:24:54 GMT","server":"ZGS","expires":"Thu, 01 Jan 1970 00:00:00 GMT","transfer-encoding":"chunked","vary":"accept-encoding","x-frame-options":"DENY","pragma":"no-cache","strict-transport-security":"max-age=63072000","set-cookie":"JSESSIONID=A033F7518924C80A143E7764FDB35F70; Path=/","x-content-type-options":"nosniff","x-xss-protection":"1","content-type":"application/vnd.api+json;charset=UTF-8","connection":"keep-alive","cache-control":"no-cache"},"responseCode":200}