To be able to use this tool you need a Marvel Developer account. Register and copy your API public and private key into the .env file.
You also need the the openssl lib installed (sudo apt install openssl
).
cp .env.example .env
make
make && make tests
You can also run the tests with Valgrind by directly calling the runtests.sh script.
VALGRIND=valgrind ./runtests.sh
The output will be stored in ./tests/error_log.txt.
./build/marvel <query>
The <query>
part is basically just the path of the API without the preceding /v1/public/. (see also developer.marvel.com/docs)
For example:
./build/marvel comics
./build/marvel comics/{comicId}
./build/marvel comics/{comicId}/characters
...
The JSON response will be stored in output.json