1.1.5 • Published 3 years ago

rentalworks-api v1.1.5

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

RentalWorks API

Node.JS library for interacting with DatabaseWorks' RentalWorks

Usage

Basic Usage

/* async function start */

import {RentalWorks} from 'rentalworks-api'

const rwApi = new RentalWorks("https://company.rentalworksweb.com")
await rwApi.login("username", "password")

let items = await rwApi.getOrderItems("A0091DK5")

console.log(items)

/* async function end */

Output

[
  {
    "Rows": {
      "OrderItemId": "A009GURA",
      ...Item Data...
    }
  },
  {
    "Rows": {
      "OrderItemId": "A009GURB",
      ...Item Data...
    }
  }
]

Creating an instance with a RentalWorks token

  /* async function start */

  import {RentalWorks} from 'rentalworks-api'

  const rwApi = new RentalWorks("https://company.rentalworksweb.com", "509467ugvo03t7y9y8rfhgv7832gft783wqrf")

  let items = await rwApi.getOrderItems("A0091DK5")

  console.log(items)

  /* async function end */

Output

[
  {
    "Rows": {
      "OrderItemId": "A009GURA",
      ...Item Data...
    }
  },
  {
    "Rows": {
      "OrderItemId": "A009GURB",
      ...Item Data...
    }
  }
]
1.1.6

3 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago