Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@triviumcapital/trivium-ts-sdk

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@triviumcapital/trivium-ts-sdk

Typescript Fetch Client SDK for trivium APIs

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-73.33%
Maintainers
1
Weekly downloads
 
Created
Source

Typescript Fetch Client SDK for trivium

Using typescript-axios generator from OpenAPI Generator.

To generate client from OpenAPI spec (docs.yaml):

  1. Install OpenAPI Generator

  2. Generate client files:

    openapi-generator generate -i docs.yaml -g typescript-axios -o src
    
  3. Build project:

    npm install
    npm run clean
    npm run build
    

To use SDK:

import { UserApi, Configuration } from 'trivium-ts-sdk';

const client = new UserApi(
    new Configuration({
    apiKey: '<your-api-key>',
    accessToken: '<your-api-secret>'
    }),
    'https://staging.api.triviumcapital.tech'
);

const user = await client.postApiV1User();

Keywords

FAQs

Package last updated on 25 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc