UNPKG

@nuralogix.ai/dfx-api-client

Version:

DeepAffex API JavaScript Client Library

43 lines (28 loc) 1.04 kB
[@nuralogix.ai/dfx-api-client](../../index.md) / [HTTP](../../http/index.md) / Licenses # Licenses Licenses end points These endpoints allow to list Licenses available to your User/Organization. ### Sample code ```js const apiClient = client(); const response = await apiClient.http.licenses.listOrgLicenses(); const { status, body } = response; if (status !== '200') { /** * TypeScript knows that once we are inside this block, the only response * shape that matches a non "200" response is the ErrorResponse */ throw body; } /** Otherwise the shape of the response is LicensesList200Response */ console.log(body.MaxDevices); ``` ### Methods - [listOrgLicenses](index.md#listorglicenses) ### listOrgLicenses ▸ **listOrgLicenses**() List licenses available to your User/Organization. Endpoint Action ID = 1406 #### Returns `Promise`<[`ErrorResponse`](../../interfaces/ErrorResponse.md) \| [`LicensesList200Response`](./interfaces/LicensesList200Response.md)\>