SendApi method
** This module export the SendApi function **
full registration
SendApi(urls: { url, botUrl, searchUrl, authUrl, mdConfirmOwnUrl, mdSetOgrnUrl }) return { sendCallback, sendRegistry, setOgrn, companyLiveSearch, confirmOwning, preparedData };
only callback
SendApi(urls: { url }) return { sendCallback, preparedData };
how to use
1 -
npm i @modulbank/sendapi
2 -
import SendApi from '@modulbank/sendapi';
3 -
const api = SendApi(urls);
4 -
get prepared data with preparedData method const data = api.preparedData()
5 -
use data for send callback and registry