Skip to content

Conversation

@harrislineage
Copy link
Member

Modified wt_session.py to support appId, and tweaked the code to support unauthenticated requests. Added example.py for testing. Also fixed a quick typo in the README.md

Modified `wt_session.py` to support `appId`, and tweaked the code to support unauthenticated requests. Added `example.py` for testing. Also fixed a quick typo in the `README.md`
@pconroy
Copy link

pconroy commented Jan 12, 2026

Thanks Steve!

Copy link

@ronaldbradford ronaldbradford left a comment

Choose a reason for hiding this comment

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

I'm new to WikiTree APIs (been a WikiTree contributor for a while), not new to Python.

I checked out the fork branch and the example.py works as expected, unauthenticated and authenticated. 👍

I provided a suggestion that enables the example to be more flexible for anybody to vett.

KEY=Bradford-8102 python example.py



APP_ID = "Python3-SessionExample"
KEY = "Windsor-1"

Choose a reason for hiding this comment

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

Suggested improvement.

APP_ID = os.environ.get("APP_ID", "Python3-SessionExample")
KEY = os.environ.get("KEY", "Windsor-1")

- wt_session.py in the same folder (your updated version that supports unauthenticated use + appId)
- requests installed
"""

Choose a reason for hiding this comment

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

import os

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.

3 participants