1.2.6 • Published 4 years ago

@flexfactory/service-client v1.2.6

Weekly downloads
48
License
UNLICENSED
Repository
-
Last release
4 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

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.31

4 years ago

1.1.30

4 years ago

1.1.29

4 years ago

1.1.28

4 years ago

1.1.27

4 years ago

1.1.26

4 years ago

1.1.25

4 years ago

1.1.24

4 years ago

1.1.23

4 years ago

1.1.22

4 years ago

1.1.21

4 years ago

1.1.20

4 years ago

1.1.19

4 years ago

1.1.18

4 years ago

1.1.17

4 years ago

1.1.16

4 years ago

1.1.15

4 years ago

1.1.14

4 years ago

1.1.13

5 years ago

1.1.12

5 years ago

1.1.11

5 years ago

1.1.10

5 years ago

1.1.9

5 years ago

1.1.8

5 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago