Connecting SDK to API
To connect SDK to Oz API, specify the API URL, access token, and SSL pins as shown below.
OZSDK.setApiConnection(Connection.fromServiceToken(host: "https://<link>.ozforensics.com", token: token, sslPins: pins)) { (token, error) in
}Alternatively, you can use the login and password provided by your Oz Forensics account manager:
OZSDK.setApiConnection(Connection.fromCredentials(host: “https://<link>.ozforensics.com”, login: login, password: password, sslPins: pins)) { (token, error) in
// Your code to handle error or token
}Telemetry
By default, logs are saved along with the analyses' data. If you need to keep the logs distinct from the analysis data, set up the separate connection for telemetry as shown below.
let eventsConnection = Connection.fromCredentials(host: https://echo.cdn.ozforensics.com/,
login: <your_telemetry_user_eg_tm@company.com>,
password: your_telemetry_password)
OZSDK.setEventsConnection(eventsConnection) { (token, error) in
}Last updated
Was this helpful?
