Generate SDK
It's time to generate an SDK to use Arbitrium as a library in your code. With Arbitrium, we decide to use Swagger. With Swagger, it's easy to generate an Arbritium SDK for any developer that might need it. Let's have a quick tutorial showing you how to generate an SDK.
#
Using our dashboard#
Go on our dashboardGo on our dashboard and click on SDK.
#
Choose your language and download your kitYou can choose your language client-side and download it. The zip file will contain all the necessary code files.
#
Using Swagger editor#
Get Arbitrium's OpenAPI specificationGo on our API's page and click on Download right next to Download OpenAPI specification:
#
Swagger editorNow, go to Swagger editor and copy/paste the OpenAPI specification. You should see our API on the right side of the page.
#
Generate an SDKNow, we can generate an SDK. Click on Generate Client
Select your programming language and use it!
#
How to use it#
GoCreate a folder named Swagger in your Go project and copy the generated SDK inside it. Your project structure should look like this.
You will need to add a dependency. You can do it by running this command.
You will need a swagger configuration and an auth context to use the SDK.
Here's an example of a deployment