1.0.59 • Published 3 years ago

brainly-wrapper v1.0.59

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Unoffical Brainly-wrapper

written in nodejs, do your homework now!

Fix version from 1.0.55

const brainly = require("brainly-wrapper")

brainly.getQuestion("kepanjangan NKRI").then(console.log).catch(console.error)

brainly.setServer("US")

brainly.getQuestion("what is 1 + 1").then(console.log).catch(console.error)

function getQuestion() will return Array as structure:

[{
  "node": {
    "id": "xxx=",
    "databaseId": "Number",
    "author": {
      "id": "xxx",
      "databaseId": "Number",
      "isDeleted": "boolean",
      "nick": "String (Username)",
      "avatar": {
        "thumbnailUrl": "String (URL)",
        "__typename": "Attachment"
      },
      "rank": {
        "name": "String (Rank)",
        "__typename": "Rank"
      },
    "__typename": "User"
    },
    "content": "String (Question)",
    "answers": {
      "nodes": [
        {
          "thanksCount": 1,
          "ratesCount": 1,
          "rating": 5,
          "content": "String (Answer)",
          "__typename": "Answer"
        }
      ],
      "hasVerified": "boolean",
      "__typename": "AnswerConnection"
    },
    "__typename": "Question"
  }
}]

Test the package with npm test

Contributions, Issues, visit Github

1.0.59

3 years ago

1.0.55

3 years ago

1.0.5

3 years ago

1.0.2

3 years ago

1.0.15

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago