1.0.12 • Published 4 years ago

sololearn-explode v1.0.12

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

NPM Version NPM Downloads Contributors Forks Stargazers Issues MIT License

Contents

Installation

$ npm install sololearn-explode

Usage

const sololearnExplode = require('sololearn-explode');

mainFuc();
async function mainFuc() {
    const user_basic_info = await sololearnExplode.basicInfo(13710268); // Returns object
    console.log(user_basic_info);
}

Note

Every Method Returns Promise after resolving you get an object

Methods

basicInfo(sololearn_id)

The sololearn_id argument should be a number and it returns Promise with basic user information.

userBadges(sololearn_id)

This method one argument sololearn_id and again should be a number returns Promise with array of user badges.

userCompletedCourses(sololearn_id)

Again same takes on argument sololearn_id should be a number returns Promise with array of user completed courses.

codeUpvotes(sololearn_id)

Yup again same as above return object with Promise user all codes title with total upvotes.

allCodesLinks(sololearn_id)

returns object with code title and code link.

allCoursesXp(sololearn_id)

returns user Xp per course again its object.

plagroundCodes(section,language)

Oh finally last one this method takes two args first section and second language both should be String reffer Types for valid arguments. This method returns array of objects every object contains every info about code.

Errors

Errors You May Face

  • Error: invalid sololearn id: You are passing invalid sololearn id should be in range of greather than 6 number and less than 10 numbers.
  • Error: Invalid Sololearn Id Provided: You are passing valid in range sololearn_id but its invalid or that user not exist.
  • Error: Got Invalid Responce: This may be happens due to maybe sololearn blocking your requests in that plz consider opening issue.
  • Undefined error: if you face any error which is not defined here plz open issue for that.

Types

List Of Valid Arguments

* sololearn_id
    * your_sololearn_id
* section
    * trending
    * mostrecent
    * mostpopular
* language 
    * web
    * kt
    * cpp
    * c
    * cs
    * java
    * py
    * php
    * rb
    * swift
    * all
1.0.11

4 years ago

1.0.12

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago