alice-app
JS wrapper for the Alice App API
Last updated 3 years ago by keydotco .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install alice-app 
SYNC missed versions from official npm registry.

CircleCI #Alice.js A node.js wrapper for the Alice App API.

Table of Contents

Installation

npm install alice-app

##Usage

Standard Initialization (defaults to https://rest.aliceapp.com)

var Alice = require('alice-app');
alice = new Alice('YOUR API KEY', 'YOUR AUTHENTICATION KEY');

Standard Initialization with alternate API URL

var Alice = require('alice-app');
alice = new Alice('YOUR API KEY', 'YOUR AUTHENTICATION KEY', 'ALTERNATE API URL');

Tickets

Get

Request:

alice.tickets('get', { hotelId: 'HOTELID', ticketId: 'TICKETID' })

Create

alice.tickets('create', {
	hotelId: '1',
	request: {
	    "dueDate": "2016-11-22T22:19:37.270Z",
	    "info": "Bring towels",
	    "lang": "en",
	    "options": [{
	        "id": "222",
	        "value": "2020-03-03T12:30:00.000Z"
	    }],
	    "owner": 0,
	    "requester": "Guest",
	    "reservation": 0,
	    "roomNumber": "string",
	    "serviceId": "102"
	}
})

Search

alice.tickets('search', { hotelId: '1', ticketTypes: 'ServiceRequest' })

Current Tags

  • 0.0.9                                ...           latest (3 years ago)

9 Versions

  • 0.0.9                                ...           3 years ago
  • 0.0.8                                ...           3 years ago
  • 0.0.7                                ...           3 years ago
  • 0.0.6                                ...           3 years ago
  • 0.0.5                                ...           3 years ago
  • 0.0.4                                ...           3 years ago
  • 0.0.3                                ...           3 years ago
  • 0.0.2                                ...           3 years ago
  • 0.0.1                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 2
This Month 6
Last Day 1
Last Week 0
Last Month 5
Dependencies (1)
Dev Dependencies (6)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |