Skip to content

Commit

Permalink
[CLEANUP] Improve documentation for access-token
Browse files Browse the repository at this point in the history
Add header alternative for the access token.
  • Loading branch information
kporras07 authored and Mateu Aguiló Bosch committed Nov 15, 2015
1 parent 9919794 commit f40337c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/api_url.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f40337c

Please sign in to comment.