VWS-Auth-Tools#
Installation#
pip install vws-auth-tools
This is tested on Python 3.12+.
Example usage#
from urllib.parse import urljoin
import requests
from vws_auth_tools import authorization_header, rfc_1123_date
request_path = '/targets'
content = b''
method = 'GET'
date = rfc_1123_date()
authorization_header = authorization_header(
access_key='my_access_key',
secret_key='my_secret_key',
method=method,
content=content,
content_type='',
date=date,
request_path=request_path,
)
headers = {'Authorization': authorization_header, 'Date': date}
response = requests.request(
method=method,
url=urljoin(base='https://vws.vuforia.com', url=request_path),
headers=headers,
data=content,
)
assert response.status_code == 200, response.text
Reference#
- API Reference
- Contributing to VWS-Auth-Tools
- Release Process
- Changelog
- Next
- 2023.03.05
- 2021.12.13.3
- 2021.12.13.1
- 2021.12.12.9
- 2021.12.12.8
- 2021.12.12.8
- 2021.12.12
- 2021.12.12.8
- 2021.12.12.8
- 2021.12.12.7
- 2021.12.12.6
- 2021.12.12.5
- 2021.12.12.4
- 2021.12.12.3
- 2021.12.12.2
- 2021.12.12.1
- 2021.12.12.0
- 2021.12.11.0
- 2021.11.05.0
- 2020.05.31.0
- 2019.12.28.4
- 2019.12.28.3
- 2019.12.28.2
- 2019.12.28.1
- 2019.12.28.0
- 2019.12.27.1
- 2019.12.27.0
- 2019.12.08.2
- 2019.12.08.1
- 2019.12.08.0