diff options
author | Steven Blowers <sblowers@findmypast.com> | 2016-09-13 13:42:02 +0100 |
---|---|---|
committer | Steven Blowers <sblowers@findmypast.com> | 2016-09-13 13:42:02 +0100 |
commit | 3b3846695d484033fa0b661cc416447bafed37eb (patch) | |
tree | 71a78d1e58e2e1eb0ab57f568437067508c3e599 /lib | |
parent | d0aa653d6abd0946998afc5e02653b07f6a0cf6d (diff) | |
download | zendex-3b3846695d484033fa0b661cc416447bafed37eb.tar.gz zendex-3b3846695d484033fa0b661cc416447bafed37eb.tar.xz |
Testing search with ordering
Diffstat (limited to 'lib')
-rw-r--r-- | lib/http_client/in_memory.ex | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/http_client/in_memory.ex b/lib/http_client/in_memory.ex index 8e6ce61..67f4d31 100644 --- a/lib/http_client/in_memory.ex +++ b/lib/http_client/in_memory.ex @@ -14,6 +14,11 @@ defmodule Zendex.HttpClient.InMemory do ["Jimbob Ticket 1", "Jimbob Ticket 2"] end + def get!("http://test.zendesk.com/api/v2/search.json?query=requester%3AReginald+type%3Aticket&sort_by=created_at&sort_order=desc", + [{"Authorization", _authentication}]) do + ["Reginald Ticket 1", "Reginald Ticket 2"] + end + def post!("http://test.zendesk.com/api/v2/tickets.json", "{\"ticket\":{}}", [{"Authorization", _authentication}, {"Content-Type", "application/json"}]) do "Ticket created successfully!" end |