Giter Site home page Giter Site logo

sigeth / codingame-api-node-ts Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 423 KB

A Node extension to use the undocumented CodinGame API

Home Page: https://sigeth.github.io/codingame-api-node-ts

License: MIT License

TypeScript 100.00%
node codingame

codingame-api-node-ts's Introduction

CodinGame API undocumented

Current API knowledge and advancement

To follow how far this package is, you can check the Trello : https://trello.com/b/q5vxDgBO/codingame-endpoints

Docs

You can see every current functions in the src/lib folder. You can see the types and the keys of the results by checking the interface result.

Installation

This is a node, so you are supposed to use it with Nodejs.
To import the module, you need to do this in a command prompt :
npm install codingame-api-node-ts

Example

This is the code to login to CodinGame

const { loginCodinGamer } = require('codingame-api-node-ts')

try {
  const email = "[email protected]"
  const password = "apitest"

  const session = await loginCodinGamer(email, password)
  
  console.log(session)
} catch (e) {
  //axios error
  console.log(e)
}

You can see the result of this by going to https://github.com/Sigeth/codingame-api-node-ts/blob/main/src/lib/api/auth.ts and check the interface "ILoginCodinGamer", that contains every keys and results of the response.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.