1.2.6 • Published 5 years ago

@flexfactory/service-client v1.2.6

Weekly downloads
48
License
UNLICENSED
Repository
-
Last release
5 years ago

service-client

Install

npm i --save @flexfactory/service-client

Usage

const ServiceClient = require('@flexfactory/service-client');

const client = new ServiceClient({
  environment: config.env,
  token: config.serviceToken,
  local: true //indicates whether client is on the same network (e.g inside cluster or localhost)
});

const accounts = await client.Auth.accounts.getAll({
  query: {
    name: { like: '*turnbull' },
  },
});

const campaign = await client.Booking.campaigns.create({
  body: {
    name: 'my new campaign',
    ...
  },
  headers: {
    hotelId: 'xxxxxxx',
  },
});
1.2.6

5 years ago

1.2.5

5 years ago

1.2.4

5 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.31

5 years ago

1.1.30

5 years ago

1.1.29

5 years ago

1.1.28

5 years ago

1.1.27

5 years ago

1.1.26

5 years ago

1.1.25

5 years ago

1.1.24

6 years ago

1.1.23

6 years ago

1.1.22

6 years ago

1.1.21

6 years ago

1.1.20

6 years ago

1.1.19

6 years ago

1.1.18

6 years ago

1.1.17

6 years ago

1.1.16

6 years ago

1.1.15

6 years ago

1.1.14

6 years ago

1.1.13

6 years ago

1.1.12

6 years ago

1.1.11

6 years ago

1.1.10

6 years ago

1.1.9

6 years ago

1.1.8

6 years ago

1.1.7

6 years ago

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago