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.
Missing
The following API lookups are not implemented:
Category Lookup: Returns the entire list of categories and ids in the database.
Category Question Count Lookup: Returns the number of questions in the database, in a specific category.
Global Question Count Lookup: Returns the number of ALL questions in the database. Total, Pending, Verified, and Rejected.
License and Acknowledgements
OpenTDB itself is licensed under the MIT license
OpenTDB depends on serde (for (de)serialization) and reqwest (for sending HTTP requests).