Skip to content

Commit

Permalink
Merge branch 'feature-1413-ask-users-to-add-email-address'
Browse files Browse the repository at this point in the history
  • Loading branch information
David Read committed Dec 7, 2011
2 parents b80162d + f4c4884 commit 79e887d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
8 changes: 2 additions & 6 deletions doc/api.rst
Expand Up @@ -429,13 +429,9 @@ To obtain your API key:

2. The user page shows the API Key: /user/me

The key should be passed in the API request header:
The key should be passed in the API request header ''Authorization'' (or an alternative may be provided such as ''X-CKAN-API-KEY''). For example::

================= =====
Header Example value
================= =====
Authorization ``fde34a3c-b716-4c39-8dc4-881ba115c6d4``
================= =====
curl http://thedatahub.org/api/rest/package -d '{"name": "test"}' -H 'Authorization: fde34a3c-b716-4c39-8dc4-881ba115c6d4'

If requests that are required to be authorized are not sent with a
valid Authorization header, for example the user associated with the
Expand Down
8 changes: 2 additions & 6 deletions doc/apiv3.rst
Expand Up @@ -223,13 +223,9 @@ To obtain your API key:

2. The user page shows the API Key: /user/me

The key should be passed in the API request header:
The key should be passed in the API request header ''Authorization'' (or an alternative may be provided such as ''X-CKAN-API-KEY''). For example::

================= =====
Header Example value
================= =====
Authorization ``fde34a3c-b716-4c39-8dc4-881ba115c6d4``
================= =====
curl http://thedatahub.org/api/rest/package -d '{"name": "test"}' -H 'Authorization: fde34a3c-b716-4c39-8dc4-881ba115c6d4'

If requests that are required to be authorized are not sent with a
valid Authorization header, for example the user associated with the
Expand Down
2 changes: 1 addition & 1 deletion pip-requirements-test.txt
@@ -1,3 +1,3 @@
# These are packages that required when running ckan tests

-e hg+https://bitbucket.org/okfn/ckanclient#egg=ckanclient
-e git+https://github.com/okfn/ckanclient#egg=ckanclient

0 comments on commit 79e887d

Please sign in to comment.