Typescript Axios Client SDK for trivium
SDK Development Documentation
To use SDK:
import { Configuration, UserApi, CashApi, FixedDepositApi, TransactionsApi } from '@triviumcapital/trivium-ts-sdk';
const TriviumService = (() => {
const triviumUrl = 'https://staging.api.triviumcapital.tech';
const configuration = new Configuration({
apiKey: '<your-api-key>',
accessToken: '<your-api-secret>'
});
const userApi = new UserApi(configuration, triviumUrl);
const cashApi = new CashApi(configuration, triviumUrl);
const fixedDepositApi = new FixedDepositApi(configuration, triviumUrl);
const transactionsApi = new TransactionsApi(configuration, triviumUrl);
return {
userApi,
cashApi,
fixedDepositApi,
transactionsApi
};
})();
const companyDetails = ...
const user = await TriviumService.userApi.postApiV1User(companyDetails);