aboutsummaryrefslogtreecommitdiff
path: root/lib/zendex
diff options
context:
space:
mode:
authorSteven Blowers <sblowers@findmypast.com>2016-09-09 09:16:38 +0100
committerSteven Blowers <sblowers@findmypast.com>2016-09-09 09:16:38 +0100
commitbcaeb7f9a9d73ea172094d867cbb5d5bb41fb039 (patch)
treeba7a6a6e8e72c3e861a92aec206d0dc495adbc03 /lib/zendex
parent02479c31e9b15711ff3177be2322359987efe229 (diff)
downloadzendex-bcaeb7f9a9d73ea172094d867cbb5d5bb41fb039.tar.gz
zendex-bcaeb7f9a9d73ea172094d867cbb5d5bb41fb039.tar.xz
Moved HttpClient under zendex dir.
Diffstat (limited to 'lib/zendex')
-rw-r--r--lib/zendex/http_client/in_memory.ex10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/zendex/http_client/in_memory.ex b/lib/zendex/http_client/in_memory.ex
new file mode 100644
index 0000000..8efdba1
--- /dev/null
+++ b/lib/zendex/http_client/in_memory.ex
@@ -0,0 +1,10 @@
+defmodule Zendex.HttpClient.InMemory do
+
+ def get!("http://test.zendesk.com/api/v2/tickets.json", [{"Authorization", authentication}]) do
+ "ticket"
+ end
+
+ def get!("http://test.zendesk.com/api/v2/search.json?query=requester%3AJimbob+type%3Aticket", [{"Authorization", authentication}]) do
+ ["Jimbob Ticket 1", "Jimbob Ticket 2"]
+ end
+end