-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Taha Yasser Adnan edited this page Dec 11, 2024
·
4 revisions
- Go to Ninjas API website
- Sign up and get your Ninjas API key
- Go to SuperHero API website.
- In the Introduction section, press
Login with GitHub
- Once it's linked get your Superhero API key
There are two methods to set up the APIs keys:
- Navigate to the
configuration
directory. - Create a
config.json
file. - Add the following content to the file:
{
"api_keys": {
"ninjas_api_key": "<replace-with-your-ninjas-api-key>",
"superhero_api_key": "<replace-with-your-superhero-api-key>"
}
}
- Using the CLI:
python3 fun_apis.py -c
- Using the interactive mode:
- Run the interactive mode:
python3 fun_apis.py -i # Or python3 fun_apis.py --interactive
- Use the
configure
option aka2
and you will be prompted to configure your api keys.
- Run the interactive mode: