From f40337c80727d2092ea42fdecb7c3ba42f382796 Mon Sep 17 00:00:00 2001 From: Kevin Porras Date: Sun, 15 Nov 2015 10:35:37 -0500 Subject: [PATCH] [CLEANUP] Improve documentation for access-token Add header alternative for the access token. --- docs/api_url.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/api_url.md b/docs/api_url.md index ccafba30..5a5447b7 100644 --- a/docs/api_url.md +++ b/docs/api_url.md @@ -202,6 +202,10 @@ curl -u "username:password" https://example.com/api/login # Call a "protected" with token resource (Articles resource version 1.3 in "Restful example") curl https://example.com/api/v1.3/articles/1?access_token=YOUR_TOKEN + +# Or use access-token instead of access_token for ensuring header is not going to be +# dropped out from $_SERVER so it remains compatible with other webservers different than apache. +curl -H "access-token: YOUR_TOKEN" https://example.com/api/v1.3/articles/1 ``` ## Change request formatter