From 5accf10650055e745c1b8bab7fda5a03905e0cf8 Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Fri, 10 Aug 2012 17:18:54 -0700 Subject: [PATCH] add example --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e6590aa..b64132c 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,11 @@ Example ------- - curl -H "Authorization: Basic geoloqi:api" "http://timezone-api.geoloqi.com/timezone?latitude=45.5118&longitude=-122.6433" + curl -u geoloqi:api "http://timezone-api.geoloqi.com/timezone?latitude=45.5118&longitude=-122.6433" + +or, if you don't like query string parameters: + + curl -u geoloqi:api http://timezone-api.geoloqi.com/timezone/45.5118/-122.6433 Nginx Config ------------ @@ -11,7 +15,8 @@ Nginx Config listen 80; access_log /var/log/nginx/timezone.log main; error_log /var/log/nginx/timezone.log notice; - root /web/TimezoneDB; + + root /web/Timezone-API; location / { try_files $uri /index.php?$query_string;