UNPKG

@sociate/sociate-api-sdk

Version:

Javascript client for Sociate AI APIs

17 lines (16 loc) 492 B
export class TrendsAPI { httpClient; constructor(httpClient) { this.httpClient = httpClient; } /** * Get Trends * @description Get a list of trending products * @param params - The parameters for the request * @returns The response indicating the success of the operation */ async get(params) { const queryParams = new URLSearchParams(params).toString(); return await this.httpClient.get(`/trends?${queryParams}`); } }