Skip to content

Add user_agent support for API requests#65

Merged
dahlia merged 3 commits intodahlia:mainfrom
webysther:patch-2
Sep 10, 2025
Merged

Add user_agent support for API requests#65
dahlia merged 3 commits intodahlia:mainfrom
webysther:patch-2

Conversation

@webysther
Copy link
Contributor

@webysther webysther commented Sep 9, 2025

Added user_agent parameter to client initialization and updated request handling to include authorization header.

Fixes #64

Please add the docs for the sake of speed.

Added access_token parameter to client initialization and updated request handling to include authorization header.
Removed access_token parameter and added user_agent parameter to the client class.
@webysther webysther changed the title Add access_token support for API requests Add user_agent support for API requests Sep 9, 2025
Copy link
Owner

@dahlia dahlia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@dahlia dahlia merged commit d2697eb into dahlia:main Sep 10, 2025
3 of 8 checks passed
dahlia added a commit that referenced this pull request Oct 31, 2025
Add changelog entry for PR #65 which adds user_agent parameter to Client
constructor to comply with Wikidata API authentication requirements.

Amp-Thread-ID: https://ampcode.com/threads/T-f6dccd8e-b9e6-4a1b-828d-ba891b572c10
Co-authored-by: Amp <amp@ampcode.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error 403 for client.get()

2 participants