1.1.2-rc • Published 9 years ago

urbit-client v1.1.2-rc

Weekly downloads
-
License
MIT
Repository
github
Last release
9 years ago

urbit-client-js

JavaScript client library for urb-it integration

Travis build status Code Climate Test Coverage Dependency Status devDependency Status

Installation

npm i --save urbit-client@1.1.2-rc

Usage

ES5

  /**
   * UrbitClient constructor
   *
   * @param {String} storeKey The store key (store ID/GUID).
   * @param {String} sharedSecret The shared secret (consumer secret).
   * @param {boolean} [stage=false] Whether the staging environment should be used instead of production.
   *
   * @throws \Error
   */

const UrbitClient = require('urbit-client').UrbitClient;
const client = new UrbitClient(...);

Only UWA:

const UWA = require('urbit-client').UWA;
const uwa = new UWA(...);

ES6

import UrbitClient from 'urbit-client';

  /**
   * UrbitClient constructor
   *
   * @param {String} storeKey The store key (store ID/GUID).
   * @param {String} sharedSecret The shared secret (consumer secret).
   * @param {boolean} [stage=false] Whether the staging environment should be used instead of production.
   *
   * @throws \Error
   */
const urbitClient = new UrbitClient(...);

Only UWA:

import { UWA } from 'urbit-client';

  /**
   * UWA constructor
   *
   * @param {String} storeKey
   * @param {String} sharedSecret
   * @param {String} [method=GET]
   * @param {String} uri
   * @param {String} json
   */
const uwa = new UWA(...);

Both:

import { UrbitClient, UWA } from 'urbit-client';

const urbitClient = new UrbitClient(...);
const uwa = new UWA(...);

Documentation

For mor documentation, see the wiki.

Maintainers & Contributors

1.1.2-rc

9 years ago

1.1.1-rc

9 years ago

1.1.0-rc.2

9 years ago

1.1.0-rc

9 years ago

1.0.0-beta2

9 years ago

1.0.0-beta

9 years ago