Closed alexevanczuk closed 7 years ago
$zdclient.tickets.search(query: "subject:ticket subject", reload: true).fetch I, [2017-10-16T08:51:58.439901 #1] INFO -- : get https://zenpayrollhelp.zendesk.com/api/v2/tickets/search?query=subject%ticket+subject&reload=true D, [2017-10-16T08:51:58.440082 #1] DEBUG -- : Accept: "application/json" Accept-Encoding: "gzip;q=1.0,deflate;q=0.6,identity;q=0.3" User-Agent: "ZendeskAPI API 1.9.5" I, [2017-10-16T08:51:59.059882 #1] INFO -- : Status 400 D, [2017-10-16T08:51:59.061785 #1] DEBUG -- : server: "nginx" date: "Mon, 16 Oct 2017 15:51:59 GMT" content-type: "application/json; charset=UTF-8" content-length: "163" connection: "close" x-zendesk-api-version: "v2" x-zendesk-application-version: "v44.28" x-rate-limit: "700" x-rate-limit-remaining: "582" strict-transport-security: "max-age=31536000;" x-ua-compatible: "IE=Edge,chrome=1" cache-control: "no-cache, private" x-zendesk-origin-server: "[param]" x-request-id: "[param]" x-runtime: "[param]" x-rack-cache: "[param]" x-zendesk-request-id: "[param]" {"error"=>{"title"=>"Invalid attribute", "message"=>"You passed an invalid value for the id attribute. Invalid parameter: id must be an integer"}} []
Looks like the search method is on the client not the tickets object, my bad...