Kiota builds the code wanted to work together with your API, and you can begin to incorporate it in your utility. You’ll need to import the generated namespace, authorize the connection, and create a shopper object primarily based on the category generated by Kiota. It’s all fairly easy actually, with calls to the API encapsulated in strategies within the Kiota-generated class, with help for traditional HTTP actions so you will get and put up knowledge from the API.
Select your language
If you happen to’re utilizing one other language, corresponding to Python, the method is analogous. With Python, nevertheless, there isn’t a bundle of stipulations and dependencies, so it is advisable use pip to put in the suitable Kiota libraries. The method of constructing and utilizing a Kiota shopper is far the identical as for .NET, importing lessons as mandatory and utilizing them asynchronously.
The Kiota expertise stays the identical for every supported language: First, load dependencies into your undertaking, construct the shopper from an OpenAPI definition, after which import and use the generated shopper lessons. When you’ve outlined the imports you’re utilizing, you may refresh the shopper with out affecting your utility code—except there’s an up to date model of the API you’re calling.