EN: Oz Knowledge Base

Connecting SDK to API

After you set up a license, connect to Oz servers:
OZSDK.setApiConnection(Connection.fromCredentials(host: “https://api.sandbox.ozforensics.com”, login: login, password: p)) { (token, error) in
// Your code to handle error or token
Please note: in your host application, it is recommended that you set the API address on the screen that precedes the liveness check. Setting the API URL initiates a service call to the API, which may cause excessive server load when being done at the application initialization or startup.