The API client is available on NPM. A library that exposes functions to analyze videos and images. Using this API is pretty simple. First, you need to install it using npm:
npm install sensifai-js-sdk
Then, you can import its functions and use them as follows:
var sdk = ;var sensifai =applicationToken: 'Your_Application_Token';
The following example will set up the client and predict video or image attributes.
First of all, you need to import the library and define an instance as mentioned above.
You can get a free limited
token from Developer Panel by creating an application.
Then, if you want to process Data by URL you can call
uploadByUrls like the below sample code.
/** This Function Return a Json Result **/var urls_list = '' '';sensifai;
Also, if you want to process Data by File, you can call
uploadByFiles like the following sample code.
/** This Function Return a Json Result **/var fileInput = document;sensifai;
at the end, to retrieve the result of a task, pass it through
Please don't forget to pass a single
TaskID! this function won't work with a list of task id.
/** This Function Return a Json Result **/var TaskID = 'XXXX-XXX-XXXX-XXXX';sensifai;