1.1.1 • Published 3 years ago
occicom-api-wrapper v1.1.1
Occicom API Wrapper
A JS wrapper for Occicom API
Installation
$ npm install --save occicom-api-wrapper
Initialisation
const OccicomAPI = require("occicom-api-wrapper");
const API = new OccicomAPI("v1");
API.login("e@mail.com", "OTP").then((loginResponse) => {
API.Dashboard.dashboard("SIP").then((dashboardResponse) => {
console.log(dashboardResponse);
}).catch((dashboardError) => {
console.error(dashboardError);
})
}).catch((loginError) => {
console.error(loginError);
})
Currently Supports
- Status (the api does not work anyway)
- Menu items (only returns information from the swagger, so useless for the moment)
- Dashboard
- Calls get the list of call log
- Calls Initiates a new call (makeCall)
- Voicemail get the list of voice mail
- Voicemail get a voice mail
- Voicemail erase a voice mail
- Voicemail mark a voice mail as read by the end user
- Voicemail get the personal greeting for the voicemail
- Voicemail get a greeting file
- Voicemail erase a greeting records
- Voicemail upload record greeting file
- Voicemail active greeting records
- Call forward get the list of call forward settings
- Call forward defines an extension call forward settings
- Dial groups get the list of all dial groups and members
- Dial groups get members of the group
- Dial groups update members of the group
- IVR get the greeting settings (if applicable for the company)
- IVR update the greeting settings (if applicable for the company)
- IVR get the mode settings of the company
- IVR update the mode settings of the company
- IVR get the Holidays
- IVR add a new holiday
- IVR deletes an existing holiday
- Phone settings get the list of available SIP accounts for the softphone (getSIPAccounts)
- Phone settings get the list of available did numbers for the SIP account (getDIDNumbers)
- Application Data Authentication (auth)
- Application Data Send OTP (sendOTP)
- Application Data Logout
- Application Data Lost password (sendLostPassword)
- Application Data get the list of application specific data
- Application Data set User Pic
- Application Data checkVersion
- Application Data get the list of languages
- Application Data modifiy the language of application
- Directory get the list of contacts
- Directory add new contact in one of the company or user directories
- Directory modify a contact in one of the company or user directories
- Directory deletes a contact from a directory
- Directory upload all mobile contacts to the server. (All contacts previously exported to the server will be removed first)
- Users get the list of other company users
- Users get the list of favorite users
- Users update favorite users list
Authors
Documentation
1.1.1
3 years ago
1.1.0
3 years ago
1.0.16
3 years ago
1.0.15
3 years ago
1.0.9
3 years ago
1.0.8
3 years ago
1.0.11
3 years ago
1.0.10
3 years ago
1.0.14
3 years ago
1.0.13
3 years ago
1.0.12
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago