Skip to content

tourware/midoffice-api-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Typisch Touristik

Use our all-in-one solution for your business. No matter if booking calendar, travel modules or files. Typisch Touristik Midoffice allows you to manage your entire online business in one system.

Build Status


Install

The preferred way to install the Midoffice.io-API for Node.js is to use the npm package manager for Node.js. Simply type the following into a terminal window:

npm install @typischtouristik/midoffice-api --save

Usage

Initialize with your credentials:

var api = require('@typischtouristik/midoffice-api')({
  url: 'https://app.midoffice.io',
  auth: {
    key: 'your-key-provided-by-midoffice-io',
    secret: 'your-secret-provided-by-midoffice-io'
  }
});

Do request to a specific endpoint:

api.request('/api/travels/' + travelsId).then(function (data) {
  // do sth. with your data
});

API Reference