gdpm/examples/rest_api/README.md
David J. Allen 807aa8e5b2 Implemented parallel downloads through CURL multi interface and added purge command
- Update `README.md` file with examples
- Fixed error messages showing no or wrong message
- Changed the prompt message when installing, removing, etc.
- Changed how http::request works
- Added `http::multi` class for parallel downloads
- Removed separate `concepts.hpp` file
TODO: Fix ZIP not extracting after running the `install` command
2023-07-10 20:26:15 -06:00

15 lines
No EOL
420 B
Markdown

# GDPM HTTP Example
This is an example showing how to use the GDPM HTTP library to download files. The library uses RapidJSON to get results.
Here is a quick snippet to get started:
```c++
// Get a full list of assets
rest_api::context context = rest_api::make_context();
rapidjson::Document doc = http::get_asset_list(
"https://godotengine.org/asset-library/api",
context
)
// ... parse the rapidjson::Document
```