Allow private server usage in Client.
Closed this issue · 2 comments
magmaus3 commented
It looks like there aren't many ways to set a custom request URL (without modifying the library itself), which could help with tools targeting private GD servers.
nekitdev commented
You can use the http.change(url=PRIVATE_SERVER_URL)
context manager for that.
client = gd.Client()
with client.http.change(url=PRIVATE_SERVER_URL):
daily = await client.get_daily()
magmaus3 commented
Thanks, it worked.