1.0.0 • Published 4 years ago

@it-center-by/truesolution-bitrix24-dashboard-sdk v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

Truesolution Bitrix24 Dashboard SDK

CI JavaScript Style Guide

Examples

Initialize SDK

Prepares SDK to collect required info.

import Bitrix24DashboardSdk from 'truesolution-bitrix24-dashboard-sdk'

const sdk = new Bitrix24DashboardSdk('Webhook URI must be here')

/**
 * Range start to data collection
 *
 * @type {Date}
 */
const rangeStart

/**
 * Range end to data collection
 *
 * @type {Date}
 */
const rangeEnd

sdk.loadData(rangeStart, rangeEnd).then(() => {
  // Use SDK to get required info
})
Retrieve some data collection

Retrieving some required data collection.

// This code must be called after Bitrix24DashboardSdk.loadData complete

const successCallsByUsers = sdk.getSuccessCallsByUsers()