1.1.2 • Published 6 months ago

leetapi v1.1.2

Weekly downloads
-
License
ISC
Repository
github
Last release
6 months ago

LeetCode API Package

Introduction

Welcome to the LeetCode API npm package! This package provides a convenient way to interact with the LeetCode platform and access various features related to LeetCode submissions and user data.

Features

Currently, the package supports the following features:

Get User's Latest Submission

You can use this package to retrieve a user's latest submission on LeetCode. The submission details may include information about the problem, submission timestamp, and other relevant data.

Installation

You can install this package via npm:

npm i leetapi

Usage

const api = require('leetapi');
const express = require('express')
const app = express()
const port = 3000

app.get('/', (req, res) => {
    api.getSubmissions('theyashwanthsai')
  .then(data => {
    console.log(data);
    res.json(data);
  })
  .catch(error => {
    console.error(error);
  });
});

app.listen(port, () => {
  console.log(`Example app listening on port ${port}`)
})
1.1.2

6 months ago

1.1.1

6 months ago

1.1.0

6 months ago

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago