Brainly Cache condition, you can disable/enable it.
Use zadane cookie to request
Private #cookieZadane cookie
Brainly cache manager instance.
The caches saved on /tmp folder. Don't worry, the caches will removed every machine reboot.
Private enabledPrivate workerBrainly worker pool (using npmjs.com/piscina)
Find a Brainly User's Information.
The user's country (you must fill it correctly)
User's id (you can use Util.convertId(author.databaseId, 'user') to fill it)
Additional axios request options
Use this function if you want search question, it will returns question detail, question author, answer detail, attachments (if question or answer attachments is any), rating question and answer.
This method based on constructor country code.
A question you want to search. Example: Pythagoras theory
What language want to search?
Length array from question list
Custom Axios request options
Example:
brain.search('Pythagoras', 'id', 10).then(console.log);
Use this function if you want search question, it will returns question detail, question author, answer detail, attachments (if question or answer attachments is any), rating question and answer.
Find question by ID
The question ID
The language of question (you should fill it correctly)
Axios request configurations
Example:
brain.searchById(52885142);
// OR
brain.searchById('cXVlc3Rpb246NTI4ODUxNDI=');
Use this function if you want search question, it will returns question detail, question author, answer detail, attachments (if question or answer attachments is any), rating question and answer.
A question you want to search. Example: Pythagoras theory
What language want to search?
Length array from question list
Custom Axios request options
Example:
brain.searchWithMT('Pythagoras', 'id', 10).then(console.log);
Static clientCreate axios instance.
Country code.
Static getThis function will return brainly site url from your country selection in the constructor
A base url of your country selection
Static getGet body request to sent.
Operation query name
Variables want to sent
Static initializeStatic isValidate language code based available languages.
A Language want to validate.
Generated using TypeDoc v0.23.16
Here, please put your application server country code. if you do not enter valid region/country code. It will trigger an Error Exception.