0.3.3 • Published 7 years ago

zab-client v0.3.3

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

Zab Client

Build Status JavaScript Style Guide

A Node wrapper for the Zab API.

Getting Started

$ npm install zab-client --save
const ZabClient = require('zab-client')
const zab = new ZabClient({ /* options */ })

Options

  • token - The API token to use for each request. Defaults to value in ~/.zab/config.json
  • endpoint - The full URL of the Zab API. Defaults to https://api.zab.io
  • raw - Whether to return the raw query instead of sending to API. All functions will return strings instead of promises when this is enabled. Defaults to false

Query Selections

You can override the default GraphQL query selections by chaining the .select() method with any other function.

zab.select('firstName sites { name }').getAccount()

Reference

public

No authentication is required to call these methods.

account
sessions
sites
domains
collaborators
deployments
  • zab.createDeploy
  • zab.activateDeploy
  • zab.waitForFile
other

License

MIT © Zab

0.3.3

7 years ago

0.3.2

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.5

8 years ago

0.2.4

8 years ago

0.2.3

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago