Skip to content

kabukki/blih

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blih

npm npm

Blih API for Node using the Promise API.

Installation

Using npm:

$ npm install blih

Quickstart

Get all your repositories :

const Blih = require('blih');

const api = new Blih({ email: 'email', password: 'password' });

api.listRepositories()
  .then(console.log)
  .catch(console.log);

Authentication

You have to be authenticated in order to use the Blih API (except for static methods), using your Epitech email and password.

const api = new Blih({ email: 'email', password: 'password' });

Note: Old logins using the format 'xxxxxx_y' are not used to authenticate anymore.

Alternatively, you can pass your token instead of your password if you have it. If both are given, only the token is taken into account.

const api = new Blih({ email: 'email', token: 'token' });

Documentation

Find the documentation here.