First integrationΒΆ
About 90 minutes. Train an API function, generate the SDK, deploy a server function that calls it, inject a Vari secret, run it.
API key and SDK: Quickstart (Path A or Path B).
Train an API function: * Python-first: Using Postman (use your instance host, not always na1). * OpenAPI: Using OpenAPI Specs. Pass
--hostUrlAsArgumentor--hostUrl. There is nopython -m polyapi model.npx poly generateorpython -m polyapi generate.Deploy a server function that calls
poly.<context>.<name>(...): Server Functions.Store a credential in Vari. Secrets use
.inject()inside the server function, not.get()on your laptop: Vari in Your Code.Run from the SDK and from PolyUI execute: PolyUI first 10 minutes.
Done when the server function returns the third-party response (or a clear error you can see in Logging).