0.1.12 • Published 9 months ago

@modulbank/sendapi v0.1.12

Weekly downloads
61
License
MIT
Repository
gitlab
Last release
9 months ago

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