Index
Documents
Modules:
opentdb
.
API symbols
BASE_URL:
opentdb: BASE_URL
Boolean:
QuestionType.Boolean
Both:
QuestionType.Both
Category:
opentdb: Category
createToken:
opentdb: createToken(client: AsyncHttpClient): Future[string]
opentdb: createToken(client: HttpClient): string
Difficulty:
opentdb: Difficulty
getQuestions:
opentdb: getQuestions(client: AsyncHttpClient; category = Category.Any; difficulty = Difficulty.Any; questionType = Both; amount: Natural = 10; token = ""): Future[seq[Question]]
opentdb: getQuestions(client: HttpClient; category = Category.Any; difficulty = Difficulty.Any; questionType = Both; amount: Natural = 10; token = ""): seq[Question]
GlobalCount:
opentdb: GlobalCount
MultipleChoice:
QuestionType.MultipleChoice
NoResults:
opentdb: NoResults
Question:
opentdb: Question
QuestionCount:
opentdb: QuestionCount
QuestionType:
opentdb: QuestionType
resetToken:
opentdb: resetToken(client: AsyncHttpClient; token: string): owned(Future[void])
opentdb: resetToken(client: HttpClient; token: string)
size:
opentdb: size(client: AsyncHttpClient; category: Category): Future[QuestionCount]
opentdb: size(client: HttpClient; category: Category): QuestionCount
TokenEmpty:
opentdb: TokenEmpty
TokenNotFound:
opentdb: TokenNotFound
totalSize:
opentdb: totalSize(client: AsyncHttpClient): Future[GlobalCount]
opentdb: totalSize(client: HttpClient): GlobalCount
URL_API:
opentdb: URL_API
URL_COUNT:
opentdb: URL_COUNT
URL_COUNT_GLOBAL:
opentdb: URL_COUNT_GLOBAL
URL_TOKEN_API:
opentdb: URL_TOKEN_API