1.1.5 • Published 2 years ago

rentalworks-api v1.1.5

Weekly downloads
-
License
ISC
Repository
github
Last release
2 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

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago