0.1.1 • Published 6 years ago

@ads-attack/qicko-api-connect v0.1.1

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

Qicko API Connect

A node library for fetching and inserting data on the qicko-api.

Dependencies

  • axios
  • qs

Usage

Installation

$ npm install --save qicko-api-connect

Setup

import { api } from 'qicko-api-connect'

let qickoAPI = api.create({
  clientId: <qicko-api-client-id>,
  accessToken: <qicko-api-access-token>,
  env: <node environment>,
  baseURL: <your-custom-api-url>
})
PropertyDescriptionDefault Value
clientIdThe provided client id given by the api administrator.*required (Should not be blank)
accessTokenAPI access token provided by api upon login.(blank string)
envThe current api environment your are getting date from. Accepted values: development, staging, and production. Corresponding API urls: - development: 'http://localhost:8000/api/v2.0/' - staging: 'https://qicko-api-staging.herokuapp.com/api/v2.0/' - production: 'https://qicko-api.herokuapp.com/api/v2.0/'development
baseURLIn case, a custom api url is required. This overrides the url provided by env.undefined

Api

under construction getObject()

getObjects()

saveObject()

archiveObject()

deleteObject()

Todos

Add facebook login, etc