glot-api

v0.1.0
A glot.io API wrapper
glot.io API wrapper

Glot-API

A glot.io API wrapper with nice utilities.

Installation

npm install --save glot-api

Usage

import GlotAPI from 'glot-api'

const glot = new GlotAPI('optional-token') // If you are logged in you will find your token here: https://glot.io/account/token.

glot.snippets({ limit: 200 }) // handle pagination automatically
.then((snippets) => {
  return glot.runSnippet(snippets[0])
})

API

All methods return a Promise.

Languages

Snippets

Run

License

MIT

npm i glot-api

Metadata

  • MIT
  • Whatever
  • Mathieu Dutour
  • released 1/9/2017

Downloads

Maintainers