How to set your API Key in your code directly
import { LytixCreds, MetricCollector } from "@lytix/client";
/**
* First set the API key
*/
LytixCreds.setAPIKey("sk-1234");
/**
* Then you can use Lytix normally
*/
await MetricCollector.increment("testMetric");
from lytix_py import MetricCollector, LytixCreds
"""
First set the API key
"""
LytixCreds.setAPIKey("sk-1234")
"""
Then you can use Lytix normally
"""
MetricCollector.increment("testMetric");