@crowdrz/crowdrz-js
Simplified wrapper for Social API
Last updated 9 months ago by bouscaa .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @crowdrz/crowdrz-js 
SYNC missed versions from official npm registry.

Logo

Query builder for social APIs.
Explore the docs »

Report Bug · Request Feature

npm CircleCI npm NPM

Table of Contents

Getting Started

Prerequisites

This project uses node and npm.

  • npm
npm install npm@latest -g

Installation

  1. Install package with npm or yarn.
# NPM
npm install --save @crowdrz/crowdrz-js

# Yarn
yarn add @crowdrz/crowdrz-js
  1. include it in your code.
const Crowdrz = require('@crowdrz/crowdrz-js')

Usage

const Crowdrz = require('@crowdrz/crowdrz-js')

const apiToken = '<api key>'

const facebook = new Crowdrz('facebook')
facebook.setToken(apiToken)
const me = await facebook.call('GET', '/me')
const me2 = await facebook
  .setMethod('GET')
  .setEndpoint('/me')
  .call()
const me3 = await facebook.setEndpoint('/me').get()
console.log(me, me2, me3) // Same Output

Test

npm test

Roadmap

See the open issues for a list of proposed features (and known issues).

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Current Tags

  • 2.0.1                                ...           latest (9 months ago)

6 Versions

  • 2.0.1                                ...           9 months ago
  • 2.0.0                                ...           9 months ago
  • 1.0.3                                ...           9 months ago
  • 1.0.2                                ...           9 months ago
  • 1.0.1                                ...           9 months ago
  • 1.0.0                                ...           9 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 12
Dependencies (2)
Dev Dependencies (11)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |