From 7256e5c2bfde2d2df0398dfcf3fa65e3eaabd685 Mon Sep 17 00:00:00 2001 From: Luke Faraone Date: Wed, 3 Apr 2013 14:08:37 -0700 Subject: [PATCH] Switch existing documentation to the new API style (imported from commit 12e4cb89900a5a6663c0d23cdf7367406333a1fb) --- templates/zephyr/api.html | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/templates/zephyr/api.html b/templates/zephyr/api.html index a72ab61e77..bd33ca6ea2 100644 --- a/templates/zephyr/api.html +++ b/templates/zephyr/api.html @@ -43,9 +43,8 @@ to pull out the resulting HTML :) {% endcomment %}

Stream message

-
curl https://humbughq.com/api/v1/send_message \
-    -d "api-key=YOUR_API_KEY" \
-    -d "email=YOUR_EMAIL" \
+
curl https://humbughq.com/api/v1/messages \
+    -u YOUR_EMAIL:YOUR_API_KEY \
     -d "type=stream" \
     -d "to=Denmark" \
     -d "subject=Castle" \
@@ -53,9 +52,8 @@ to pull out the resulting HTML :)
 

Private message

-
curl https://humbughq.com/api/v1/send_message \
-    -d "api-key=YOUR_API_KEY" \
-    -d "email=YOUR_EMAIL" \
+
curl https://humbughq.com/api/v1/messages \
+    -u YOUR_EMAIL:YOUR_API_KEY \
     -d "type=private" \
     -d "to=wdaher@humbughq.com" \
     -d "content=I come not, friends, to steal away your hearts."