opentdb-rs
An implementation of the Open Trivia Database API in Rust https://opentdb.com
Install
Usage
extern crate opentdb;
use ApiRequest;
use ApiResponse;
use Category;
use Difficulty;
use QuestionType;
use Encoding;
Limitations
- Only 1 Category can be requested per API Call. To get questions from any category, don't specify a category.
- A Maximum of 50 Questions can be retrieved per call.
License and Acknowledgements
OpenTDB itself is licensed under the MIT license
OpenTDB depends on serde (for (de)serialization) and reqwest (for sending HTTP requests).
The Open Trivia Database is a collection of user-contributed trivia questions. This project would not be possible without it.
All data provided by their API is available under the Creative Commons Attribution-ShareAlike 4.0 International License as is written on the Open Trivia Database website.