Skip to content

Commit

Permalink
update sample url
Browse files Browse the repository at this point in the history
  • Loading branch information
Watson Zuo committed Oct 22, 2024
1 parent 5a9c130 commit ed9dfe5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tracking/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ def canonical_header(cls, headers: Dict) -> str:
def canonical_resource(cls, raw_url: str) -> str:
"""
:param raw_url: str - raw request url.
Example : https://api.aftership.com/tracking/2024-04/trackings?key2=value2&key1=value1
Example : https://api.aftership.com/tracking/2024-10/trackings?key2=value2&key1=value1
:return canonical_url: str - canonical request url.
Example :/tracking/2024-04/trackings?key1=value1&key2=value2
Example :/tracking/2024-10/trackings?key1=value1&key2=value2
"""
u = url.parse_url(raw_url)
resource = u.path
Expand Down

0 comments on commit ed9dfe5

Please sign in to comment.