Closed FrnandMG closed 2 years ago
@FrnandMG
You need to use parameter "configuration" of ApiClient() , what is rawg.Configuration() object. This object contain api_key, username, password and other parameters.
Something like this:
config = rawg.Configuration(api_key=client_api_key)
async def requests():
async with rawg.ApiClient(configuration=config) as api_client:
@AndrejGorodnij thank you.
Hi there, I am a newbie and still haven't figured it out.. I've tried defining client_api_key as a string containing the api key, but I am doing something wrong.. Help would be appreciated. :>
This is how thecoros code looks, I think I can figure out the rest, but I need the help with the api key
Hello @EmilyisWIP @FrnandMG 👋🏻
I updated the package to v1.2.0 -- now it works well with api keys, provide them this way: rawg.Configuration(api_key={'key': 'YOUR_API_KEY'})
Full example in README and here: https://github.com/uburuntu/rawg/blob/master/examples/games_api.py
Update the package: pip install -U rawg
Hello, where do i put the api key??