Skip to content

Commit

Permalink
Update documentation for v0.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
prkumar committed May 13, 2019
1 parent 2c9e174 commit adbb8ee
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ Added
.. _`Semantic Versioning`: https://packaging.python.org/tutorials/distributing-packages/#semantic-versioning-preferred

.. Releases
.. _0.9.0: https://github.com/prkumar/uplink/compare/v0.8.0...v0.9.0
.. _0.8.0: https://github.com/prkumar/uplink/compare/v0.7.0...v0.8.0
.. _0.7.0: https://github.com/prkumar/uplink/compare/v0.6.1...v0.7.0
.. _0.6.1: https://github.com/prkumar/uplink/compare/v0.6.0...v0.6.1
Expand Down
13 changes: 8 additions & 5 deletions docs/source/user/auth.rst
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,17 @@ sent as part of every request.
from uplink.auth import ApiTokenParam, ApiTokenHeader, BearerToken
# Passing a random auth query parameter
github = GitHub(BASE_URL, auth=ApiTokenParam("access_token", access_token))
# Passing an auth token as a query parameter
token_auth = ApiTokenParam("access_token", access_token)
github = GitHub(BASE_URL, auth=token_auth)
# Passing a random auth header
github = GitHub(BASE_URL, auth=ApiTokenHeader("Access-Token", access_token))
# Passing the token as a header value
token_auth = ApiTokenHeader("Access-Token", access_token)
github = GitHub(BASE_URL, auth=token_auth)
# Passing a Bearer auth token
github = GitHub(BASE_URL, auth=BearerToken(access_token))
bearer_auth = BearerToken(access_token)
github = GitHub(BASE_URL, auth=bearer_auth)
Using Auth Support for Requests and aiohttp
-------------------------------------------
Expand Down

0 comments on commit adbb8ee

Please sign in to comment.