import Limitry from '@limitry/sdk';const client = new Limitry({ apiKey: process.env['LIMITRY_API_KEY'], // This is the default and can be omitted});const response = await client.customers.getUsage('id', { endDate: '2019-12-27T18:11:19.117Z', startDate: '2019-12-27T18:11:19.117Z',});console.log(response.customerId);
Retrieve usage summary for a specific customer within a date range.
GET
/
customers
/
{id}
/
usage
JavaScript
Copy
import Limitry from '@limitry/sdk';const client = new Limitry({ apiKey: process.env['LIMITRY_API_KEY'], // This is the default and can be omitted});const response = await client.customers.getUsage('id', { endDate: '2019-12-27T18:11:19.117Z', startDate: '2019-12-27T18:11:19.117Z',});console.log(response.customerId);