Kiota builds the code wanted to work together with your API, and you can begin to incorporate it in your utility. You will want to import the generated namespace, authorize the connection, and create a shopper object based mostly 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 assist for traditional HTTP actions so you may get and publish knowledge from the API.
Select your language
Should you’re utilizing one other language, similar to Python, the method is analogous. With Python, nevertheless, there isn’t any bundle of stipulations and dependencies, so you might want to 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 obligatory 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.