@nuralogix.ai/dfx-api-client
Version:
DeepAffex API JavaScript Client Library
43 lines (28 loc) • 1.04 kB
Markdown
[@nuralogix.ai/dfx-api-client](../../index.md) / [HTTP](../../http/index.md) / Licenses
Licenses end points
These endpoints allow to list Licenses available to
your User/Organization.
```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);
```
- [listOrgLicenses](index.md
▸ **listOrgLicenses**()
List licenses available to your User/Organization.
Endpoint Action ID = 1406
`Promise`<[`ErrorResponse`](../../interfaces/ErrorResponse.md) \| [`LicensesList200Response`](./interfaces/LicensesList200Response.md)\>