Skip to content
Permalink
Browse files
Added info, Forgot it! xD
Added info to file
Ignore toke.jeff and __pycache__/DataAPI.cpython-36.pyc
  • Loading branch information
mateussa committed Oct 27, 2017
1 parent f6b9f60 commit edd561043437cb2bb3d0d1b4cdd9c6dc2665e153
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
@@ -0,0 +1,3 @@

__pycache__/DataAPI.cpython-36.pyc
data/token.jeff
@@ -0,0 +1,27 @@
#### Functions

getQuestion
- Input (category, difficulty, nrQuestions = 1, database = "opentDB")
Random = "" or "Any" or "Random"
- Output (questions, rightAns, worngAns, qTypes)

opentDBCat
- Input (onlyCategories = False)
True returns categories without IDs
- Output (categories)




#### Error Codes

0 - There was an error opening the URL
1 - Error reading JSON data
2 - The number of questions requested not valid
3 - Category not valid
4 - Difficulty not valid
5 - No results were found
6 - Invalid parameter
7 - Token not found or all available question were used


0 comments on commit edd5610

Please sign in to comment.