Socket
Socket
Sign inDemoInstall

@sense.ai.tion/senseaition_api

Package Overview
Dependencies
38
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @sense.ai.tion/senseaition_api

This_is_the_interface_for_the_sense_ai_tion_services__Everything_working_in_the_WEB_application_of_sense_ai_tion_can_be_done_with_this_API_too__In_fact_the_WEB_application_is_based_on_this_interface_and_doesnt_use_any_other_service__Dont_wait_Get_a_sense_


Version published
Maintainers
1
Created

Readme

Source

sense_ai_tion_api

SenseAiTionApi - JavaScript client for sense_ai_tion_api This is the interface for the sense.ai.tion services. With it you can access the services for analysing audio streams or text of communications. You can produce transcripts and get deeper information. Emotional and psychological data can fetched as annotation to the text. This API is used by the sense.ai.tion WEB applications (e.g. the PWA) too. That means, that everything what is working in the WEB application of sense.ai.tion can be done with this API - there is nothing else. Don't wait: Get a sense.ai.tion account and take a deep dive into the world of emotions, personality and motivations. This SDK is automatically generated by the OpenAPI Generator project:

  • API version: 1.1.0
  • Package version: 1.1.0
  • Build package: org.openapitools.codegen.languages.JavascriptClientCodegen For more information, please visit https://senseaition.com/

Installation

For Node.js

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install sense_ai_tion_api --save

Finally, you need to build the module:

npm run build
Local development

To use the library locally without publishing to a remote npm registry, first install the dependencies by changing into the directory containing package.json (and this README). Let's call this JAVASCRIPT_CLIENT_DIR. Then run:

npm install

Next, link it globally in npm with the following, also from JAVASCRIPT_CLIENT_DIR:

npm link

To use the link you just defined in your project, switch to the directory you want to use your sense_ai_tion_api from, and run:

npm link /path/to/<JAVASCRIPT_CLIENT_DIR>

Finally, you need to build the module:

npm run build
git

If the library is hosted at a git repository, e.g.https://github.com/GIT_USER_ID/GIT_REPO_ID then install it via:

    npm install GIT_USER_ID/GIT_REPO_ID --save

For browser

The library also works in the browser environment via npm and browserify. After following the above steps with Node.js and installing browserify with npm install -g browserify, perform the following (assuming main.js is your entry file):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:

module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}

Getting Started

Please follow the installation instruction and execute the following JS code:

var SenseAiTionApi = require('sense_ai_tion_api');

var defaultClient = SenseAiTionApi.ApiClient.instance;
// Configure API key authorization: APIKeyHeader
var APIKeyHeader = defaultClient.authentications['APIKeyHeader'];
APIKeyHeader.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKeyHeader.apiKeyPrefix['X-API-Key'] = "Token"
// Configure OAuth2 access token for authorization: googleIdToken
var googleIdToken = defaultClient.authentications['googleIdToken'];
googleIdToken.accessToken = "YOUR ACCESS TOKEN"

var api = new SenseAiTionApi.InformationApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.health(callback);

Documentation for API Endpoints

All URIs are relative to https://api.senseaition.rocks/v1

ClassMethodHTTP requestDescription
SenseAiTionApi.InformationApihealthGET /health
SenseAiTionApi.InformationApiserviceGetGET /service/{id}gets the description of a service
SenseAiTionApi.InformationApiserviceGetListGET /servicesgets the list of all services available
SenseAiTionApi.InformationApisimplePingGET /pingping-pong
SenseAiTionApi.InformationApiversionGetGET /versiongets the api version
SenseAiTionApi.InformationApiworkflowGetGET /workflow/{id}gets the description of a workflow
SenseAiTionApi.InformationApiworkflowGetListGET /workflowsgets the description of all defined workflows, currently in the system
SenseAiTionApi.InterfaceApicuiAnswerGET /cui/answer/{chatSessionID}answers from the conversational user interface
SenseAiTionApi.InterfaceApicuiQueryPOST /cui/queryquery to the conversational user interface
SenseAiTionApi.OrdersApiorderChangeStatePATCH /orders/state/{id}changes the current state of an order
SenseAiTionApi.OrdersApiorderDownloadPartGET /orders/download/{id}/{partid}download a textual or audio part of an order
SenseAiTionApi.OrdersApiorderGetGET /orders/{id}get an order
SenseAiTionApi.OrdersApiorderGetListGET /orders/listgets all orders, using the filter
SenseAiTionApi.OrdersApiorderGetResultGET /orders/result/{id}get the result of an order
SenseAiTionApi.OrdersApiorderGetStateGET /orders/state/{id}get the current state of an order
SenseAiTionApi.OrdersApiorderGetTranscriptGET /orders/transcript/{id}/{format}get the transcript of an order
SenseAiTionApi.OrdersApiorderUploadPartPOST /orders/uploadupload a textual or audio part of an order
SenseAiTionApi.OrdersApiordersPlaceOnePOST /orders/placeplace a new order at the sense.ai.tion cloud system
SenseAiTionApi.OrdersApipersonCreatePOST /personcreate a new person
SenseAiTionApi.OrdersApipersonDeleteDELETE /person/{id}delete/anonymize a person object
SenseAiTionApi.OrdersApipersonGetGET /person/{id}get a person object
SenseAiTionApi.OrdersApipersonGetListGET /personslist all persons
SenseAiTionApi.OrdersApipersonUpdatePATCH /person/{id}update a person object
SenseAiTionApi.ProfileApicustomerGetGET /customergets the customer profile
SenseAiTionApi.ProfileApiprojectCreatePOST /projectcreates a new project
SenseAiTionApi.ProfileApiprojectDeleteDELETE /project/{id}disables the project
SenseAiTionApi.ProfileApiprojectGetGET /project/{id}gets the project description
SenseAiTionApi.ProfileApiprojectGetListGET /projectsgets all project descriptions for the current customer
SenseAiTionApi.ProfileApiprojectStateGET /project/state/{id}changes the state of a project to active or archived
SenseAiTionApi.ProfileApiprojectUpdatePATCH /project/{id}change/updates some values of a project
SenseAiTionApi.ProfileApiuserAPIKeyGET /user/apikey/{id}adds a new API-Key to the specified user profile
SenseAiTionApi.ProfileApiuserCreatePOST /usercreates a new user profile
SenseAiTionApi.ProfileApiuserDeleteDELETE /user/{id}disables the user profile
SenseAiTionApi.ProfileApiuserGetGET /user/{id}gets the user profile
SenseAiTionApi.ProfileApiuserGetCurrentGET /usergets the profile of the authenticated user
SenseAiTionApi.ProfileApiuserGetListGET /userslists the user profiles for the current customer
SenseAiTionApi.ProfileApiuserUpdatePATCH /user/{id}change/updates some values of an user profile
SenseAiTionApi.StorageApiinvoiceGetGET /invoice/{id}get an invoice object
SenseAiTionApi.StorageApiinvoiceGetListGET /invoiceslist all invoices

Documentation for Models

Documentation for Authorization

APIKeyHeader

  • Type: API key
  • API key parameter name: X-API-Key
  • Location: HTTP header

googleIdToken

FAQs

Last updated on 04 Oct 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc