@nuralogix.ai/dfx-api-client
Version:
DeepAffex API JavaScript Client Library
58 lines (38 loc) • 1.71 kB
Markdown
The DeepAffex™ Cloud API JavaScript Client Library is designed for JavaScript client-application
developers. It offers simple, flexible access to many DeepAffex APIs.
The main way that we ship our DeepAffex™ Cloud API code to NPM is
as [ECMAScript modules](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules)
with [ECMAScript 2022, the 13th edition](https://tc39.es/ecma262/) syntax.
This allows developers to take advantage of modern JavaScript features and have greater control over what they ship to their end users.
You can use either of the following methods to add the library to your project:
```
yarn add @nuralogix.ai/dfx-api-client
npm install @nuralogix.ai/dfx-api-client
```
Once added, then you can use it like this:

You can load them from popular CDNs such as `skypack`, `JsDelivr` and `Unpkg`.
```html
<html>
<body>
<script type="module">
import client from 'https://cdn.skypack.dev/@nuralogix.ai/dfx-api-client@1.0.0';
const apiClient = client();
const response = await apiClient.http.general.status();
const { status, body } = response;
if (status === '200') console.log(body.Version);
</script>
</body>
</html>
```
- [Introduction](https://docs.deepaffex.ai/jsapiclient)
- [Getting Started](https://docs.deepaffex.ai/jsapiclient/GettingStarted)
- [API](https://docs.deepaffex.ai/jsapiclient/API)