Client SDKs
An official client SDK for the fulfillmenttools platform is provided, and clients can also be generated using third-party tools.
fulfillmenttools SDK
The official fulfillmenttools client SDK in TypeScript is available on GitHub and npm and can be used in any JavaScript runtime environment.
The TypeScript SDK is open source and licensed under the MIT License, allowing it to be used in projects and for contributions to its development.
Client generation
Another approach is to use Swagger Codegen, which can generate client SDKs from an OpenAPI specification for a wide range of programming languages.
Other tools, such as the OpenAPI Generator, can also be used. It is also possible to opt out of generating classes or types and instead manually model the required components for a specific use case.
TypeScript example
This example demonstrates how to generate a TypeScript client:
Follow the Swagger Codegen CLI Tool instructions on GitHub.
Download the
fulfillmenttoolsOpenAPI specification api.swagger.yaml.Use the Swagger Codegen CLI tool to generate a TypeScript client:
java -jar swagger-codegen-cli-3.0.62.jar generate \ -i api.swagger.yaml \ -l typescript-fetch \ -o clientThis command generates the client classes in the
clientfolder. Within this folder, theapi.tsfile contains the generatednamespacesandinterfaces.It is possible to use all the generated client classes, or to selectively use the generated
enum,interface,namespace, andtypedefinitions to implement a custom client.
Last updated