@sushiswap/styro-client
v0.0.36
Published
Sushi Styro Client
Downloads
418
Readme
@sushi/styro-client
Sushi Styro Client is a TypeScript client for interacting with the Styro API.
Installation
npm install @sushi/styro-clientUsage
import { createStyroClient } from '@sushi/styro-client';
const config = {
accessToken: {
sessionId: '<zitadel session id>',
sessionToken: '<zitadel sesstion token>'
},
// other configuration parameters
};
const client = createStyroClient(config);
// Use the client to interact with the API
Configuration
The createStyroClient function requires a configuration object with the following properties:
accessToken(string): Your access token for authenticating with the API.- Other configuration parameters as defined in
ConfigurationParameters.
Scripts
build: Compile the TypeScript code.check: Type-check the code without emitting output.clean: Remove build artifacts and dependencies.dev: Run the code in development mode.generate: Generate API client code from the OpenAPI specification.start: Run the compiled code.
License
MIT
