garoon-soap
TypeScript icon, indicating that this package has built-in type declarations

0.1.12 • Public • Published

garoon-soap

Garoon SOAP API client library for JavaScript applications (both on web browser and Node.js).

npm version npm downloads License

Overview

garoon-soap is an isomorphic JavaScript library utilizing Garoon SOAP API. It works both in the browser and Node.js.

With this library, you can use Garoon SOAP API without considering XML which is too hard for developers to handle.

Supported APIs

Setup

Node.js

Install garoon-soap via npm.

npm install garoon-soap

Require garoon-soap in your Node.js code.

const GaroonSoap = require('garoon-soap');
const garoon = new GaroonSoap('https://example.cybozu.com/g/', 'username', 'password');

// example
const start = new Date();
const end = new Date();
end.setDate(start.getDate() + 1);
garoon.schedule.getEvents(start, end).then(events => {
    console.log(events);
});

Web Browser

Download garoon-soap.min.js from Releases.

Load it by <script src="/path/to/garoon-soap.min.js"></script>.

Then, you can use GaroonSoap class in your JavaScript.

// You can use session authorization if you have already logged-in to Garoon.
const garoon = new GaroonSoap('https://example.cybozu.com/g/');

// example
const start = new Date();
const end = new Date();
end.setDate(start.getDate() + 1);
garoon.schedule.getEvents(start, end).then(events => {
    console.log(events);
});

License

MIT

Author

miyajan: Jumpei Miyata miyajan777@gmail.com

Disclaimer

This OSS is my own personal work and does not have any relationship with Cybozu Inc. or any other organization which I belong to.

Readme

Keywords

Package Sidebar

Install

npm i garoon-soap

Weekly Downloads

17

Version

0.1.12

License

MIT

Unpacked Size

785 kB

Total Files

152

Last publish

Collaborators

  • miyajan