Provide your API key via the CHANNEL3_API_KEY environment variable, or pass it directly to the client.
import Channel3 from "@channel3/sdk";// Initialize with environment variableconst client = new Channel3();// Or, initialize with API key directlyconst clientWithKey = new Channel3({ apiKey: "your_api_key_here",});
from channel3_sdk import Channel3# Initialize with environment variableclient = Channel3()# Or, initialize with API key directlyclient_with_key = Channel3(api_key="your_api_key_here")
Async usage
import Channel3 from "@channel3/sdk";const client = new Channel3();async function main() { const response = await client.products.search({ query: "organic cotton t-shirt", }); console.log(response);}main();