2.1.279 • Published 2 years ago

@sense.ai.tion/sense_ai_tion_api v2.1.279

Weekly downloads
66
License
sense.ai.tion lic...
Repository
-
Last release
2 years ago

sense_ai_tion

SenseAiTion - JavaScript client for sense_ai_tion 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.2.0
  • Package version: 1.2.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 --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 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 SenseAiTion = require('sense_ai_tion');

var defaultClient = SenseAiTion.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: googleFireBase
var googleFireBase = defaultClient.authentications['googleFireBase'];
googleFireBase.accessToken = "YOUR ACCESS TOKEN"

var api = new SenseAiTion.CampaignApi()
var red = 56; // {Number} red value from 50 to 150
var green = 56; // {Number} green value from 50 to 150
var blue = 56; // {Number} blue value from 50 to 150
var yellow = 56; // {Number} yellow value from 50 to 150
var black = 56; // {Number} black value from 50 to 150
var white = 56; // {Number} white value from 50 to 150
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.campaignGetQR(red, green, blue, yellow, black, white, callback);

Documentation for API Endpoints

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

ClassMethodHTTP requestDescription
SenseAiTion.CampaignApicampaignGetQRGET /qr/{red}/{green}/{blue}/{yellow}/{black}/{white}get colored twentyfive qr code
SenseAiTion.CampaignApicampaignGetSignatureGET /signature/{red}/{green}/{blue}/{yellow}/{black}/{white}get colored twentyfive signature with qr code
SenseAiTion.CampaignApicampaignGetURLGET /tf/{red}/{green}/{blue}/{yellow}/{black}/{white}resolves a qrcode link to redirect
SenseAiTion.CampaignApigetHtmlSignumGET /htmlsignum/{red}/{green}/{blue}/{yellow}/{black}/{white}generates an html element containing a Mindful Communication Badge for the given TwentyFive values
SenseAiTion.ConverterApiconvertResultGET /orders/result/{id}/{type}get the converted result of an order
SenseAiTion.ConverterApiconvertersListGET /convertersgets the list of all available converters
SenseAiTion.HistoryApigetHistoryBulkGET /history/{id}query the history log for one uuid
SenseAiTion.InformationApihealthGET /health
SenseAiTion.InformationApiserviceGetGET /service/{id}gets the description of a service
SenseAiTion.InformationApiserviceGetListGET /servicesgets the list of all services available
SenseAiTion.InformationApisimplePingGET /pingping-pong
SenseAiTion.InformationApiversionGetGET /versiongets the api version
SenseAiTion.InformationApiworkflowGetGET /workflow/{id}gets the description of a workflow
SenseAiTion.InformationApiworkflowGetListGET /workflowsgets the description of all defined workflows, currently in the system
SenseAiTion.InvoicesApiinvoiceGetGET /invoice/{id}get an invoice object
SenseAiTion.InvoicesApiinvoiceGetBillingInfoGET /invoice/billinginfoget billing information of the authenticated customer
SenseAiTion.InvoicesApiinvoiceGetListGET /invoiceslist all invoices
SenseAiTion.InvoicesApiinvoiceGetPdfGET /invoice/pdf/{id}get an document of aninvoice object
SenseAiTion.MailApigetMailListGET /mail/listgets all mails, using the filter
SenseAiTion.MailApimailTemplateCreatePOST /mail/mailtemplatecreate a new mail template
SenseAiTion.MailApimailTemplateGetGET /mail/mailtemplate/{id}get a mail template object
SenseAiTion.MailApimailTemplateGetListGET /mail/mailtemplateslist all mail templates of the customer and all system templates
SenseAiTion.MailApimailTemplateUpdatePATCH /mail/mailtemplate/{id}update a mail template object
SenseAiTion.MailApimailTemplateUsageCreatePOST /mail/mailtemplateusagecreate a new mail template
SenseAiTion.MailApimailTemplateUsageDeleteDELETE /mail/mailtemplateusage/{id}delete a mail template usage object
SenseAiTion.MailApimailTemplateUsageGetListGET /mail/mailtemplateusageslist all mail template usages of the current customer and all system templates
SenseAiTion.MailApimailTemplateUsageUpdatePATCH /mail/mailtemplateusage/{id}update a mail template object
SenseAiTion.OrdersApigetResultPartGET /orders/resultpart/{id}/{type}get the resultparts of an order
SenseAiTion.OrdersApiorderChangeResultPATCH /orders/result/{id}changes the current state of an order
SenseAiTion.OrdersApiorderChangeStatePATCH /orders/state/{id}changes the current state of an order
SenseAiTion.OrdersApiorderDownloadPartGET /orders/download/{id}/{partid}download a textual or audio part of an order
SenseAiTion.OrdersApiorderGetGET /orders/{id}get an order
SenseAiTion.OrdersApiorderGetListGET /orders/listgets all orders, using the filter
SenseAiTion.OrdersApiorderGetLiveResultGET /orders/result/live/{id}get the result of an order
SenseAiTion.OrdersApiorderGetProfileGET /orders/profile/{id}get the profile of an order
SenseAiTion.OrdersApiorderGetResultGET /orders/result/{id}get the result of an order
SenseAiTion.OrdersApiorderGetStateGET /orders/state/{id}get the current state of an order
SenseAiTion.OrdersApiorderGetTranscriptGET /orders/transcript/{id}/{format}get the transcript of an order
SenseAiTion.OrdersApiorderUploadPartPOST /orders/uploadupload a textual or audio part of an order
SenseAiTion.OrdersApiorderUploadTextPartPOST /orders/upload/textupload a raw textual part of an order
SenseAiTion.OrdersApiordersPlaceOnePOST /orders/placeplace a new order at the sense.ai.tion cloud system
SenseAiTion.OrdersApiordersPlaceOneSyncPOST /orders/placeSyncplace a new order at the sense.ai.tion cloud system
SenseAiTion.OrdersApipersonCreatePOST /personcreate a new person
SenseAiTion.OrdersApipersonDeleteDELETE /person/{id}delete/anonymize a person object
SenseAiTion.OrdersApipersonGetGET /person/{id}get a person object
SenseAiTion.OrdersApipersonGetListGET /personslist all persons
SenseAiTion.OrdersApipersonGetTokenGET /person/{id}/tokenget a token object
SenseAiTion.OrdersApipersonUpdatePATCH /person/{id}update a person object
SenseAiTion.PreferenceApipreferencesGetListGET /preferencesgets all usable Preferences
SenseAiTion.ProfileApicustomerBaseProductGetListGET /customerbaseproductslist all customer base products
SenseAiTion.ProfileApicustomerGetGET /customergets the customer profile
SenseAiTion.ProfileApicustomerImageUpdatePATCH /customer/imagechange/updates the CustomerImage of the current customer profile
SenseAiTion.ProfileApicustomerOptionUpdatePATCH /customer/optionchange/updates one CustomerOption of the current customer profile
SenseAiTion.ProfileApigetLeadGroupsByUserGET /user/{id}/checkcheck user profile for lead role in user groups
SenseAiTion.ProfileApigroupCreatePOST /groupcreates a new group
SenseAiTion.ProfileApigroupDeleteDELETE /group/{id}delete the group
SenseAiTion.ProfileApigroupGetGET /group/{id}gets the group description
SenseAiTion.ProfileApigroupGetListGET /groupsgets all group descriptions for the current customer
SenseAiTion.ProfileApigroupGetMembersGET /group/members/{id}gets all users associated with the group
SenseAiTion.ProfileApigroupInviteGetGET /group/{id}/invite/{objectType}/{objectId}invites a user or person to the group specified
SenseAiTion.ProfileApigroupMemberUpdatePATCH /group/{groupId}/memberschange/updates some values of a group
SenseAiTion.ProfileApigroupPermissionsGetListGET /groups/permissionsgets all groups permissions for the current user mapped to a Projects
SenseAiTion.ProfileApigroupUpdatePATCH /group/{id}change/updates some values of a group
SenseAiTion.ProfileApimailActionsGetListGET /mailactionsgets all usable MailActions
SenseAiTion.ProfileApimailTagsGetListGET /mailtagsgets all usable MailTags
SenseAiTion.ProfileApiprojectCreatePOST /projectcreates a new project
SenseAiTion.ProfileApiprojectDeleteDELETE /project/{id}disables the project
SenseAiTion.ProfileApiprojectGetGET /project/{id}gets the project description
SenseAiTion.ProfileApiprojectGetDataGET /project/{id}/{type}/data/gets a list of all the files associated with a profiling project
SenseAiTion.ProfileApiprojectGetDataFileGET /project/{id}/data/{did}gets the uploaded excel file specified by the {did} for the project with {id}
SenseAiTion.ProfileApiprojectGetListGET /projectsgets all project descriptions for the current customer
SenseAiTion.ProfileApiprojectJWTGET /project/{id}/jwtgenerates a JWT token that will be used as an external key for the project
SenseAiTion.ProfileApiprojectStateGET /project/state/{id}changes the state of a project to active or archived
SenseAiTion.ProfileApiprojectUpdatePATCH /project/{id}change/updates some values of a project
SenseAiTion.ProfileApiuserAPIKeyGET /user/apikey/{id}adds a new API-Key to the specified user profile
SenseAiTion.ProfileApiuserCreatePOST /usercreates a new user profile
SenseAiTion.ProfileApiuserDeleteDELETE /user/{id}disables the user profile
SenseAiTion.ProfileApiuserGetGET /user/{id}gets the user profile
SenseAiTion.ProfileApiuserGetCurrentGET /usergets the profile of the authenticated user
SenseAiTion.ProfileApiuserGetListGET /userslists the user profiles for the current customer
SenseAiTion.ProfileApiuserPasswordResetGET /user/{id}/passwordresetgets the user password reset link
SenseAiTion.ProfileApiuserPasswordResetActionPOST /user/passwordresetresets the users password
SenseAiTion.ProfileApiuserUpdatePATCH /user/{id}change/updates some values of an user profile
SenseAiTion.QuotaApiquotaGetGET /quota/{id}gets the quota of customer
SenseAiTion.ShoppingApicustomerProductCreatePOST /customerproductcreate a new customer product
SenseAiTion.ShoppingApicustomerProductGetGET /customerproduct/{sku}get a customer product object
SenseAiTion.ShoppingApicustomerProductGetListGET /customerproductslist all customer products
SenseAiTion.ShoppingApicustomerProductStateGET /customerproduct/state/{sku}disables/enables the customer product
SenseAiTion.ShoppingApicustomerProductUpdatePATCH /customerproduct/{sku}update a customer product object
SenseAiTion.ShoppingApiexternalTransactionGetGET /payment/externaltransaction/{id}get a external transaction object
SenseAiTion.ShoppingApiexternalTransactionGetCSVGET /payment/externaltransactions/csvexport all external transactions as csv file
SenseAiTion.ShoppingApiexternalTransactionGetDocumentGET /payment/externaltransaction/download/{id}download the receipt of an external transaction
SenseAiTion.ShoppingApiexternalTransactionGetListGET /payment/externaltransactionslist all external transactions
SenseAiTion.ShoppingApipaymentPOST /payment
SenseAiTion.ShoppingApirecentProductsGET /recentproductslist current customer products with recent usage
SenseAiTion.ShoppingApiredeemGET /redeem/{provider}/{package}/{sku}/{token}
SenseAiTion.ShoppingApiwebhookPaymentPOST /webhook-paymentthis route webhook for paypal payments

Documentation for Models

Documentation for Authorization

APIKeyHeader

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

OTPKeyHeader

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

googleFireBase

2.1.279

2 years ago

2.1.278

2 years ago

2.1.277

2 years ago

2.1.275

2 years ago

2.1.276

2 years ago

2.1.271

2 years ago

2.1.270

2 years ago

2.1.273

2 years ago

2.1.272

2 years ago

2.1.274

2 years ago

2.1.262

2 years ago

2.1.261

2 years ago

2.1.264

2 years ago

2.1.263

2 years ago

2.1.266

2 years ago

2.1.265

2 years ago

2.1.268

2 years ago

2.1.269

2 years ago

2.1.257

2 years ago

2.1.259

2 years ago

2.1.258

2 years ago

2.1.260

2 years ago

2.1.253

3 years ago

2.1.255

3 years ago

2.1.254

3 years ago

2.1.256

3 years ago

2.1.252

3 years ago

2.1.251

3 years ago

2.1.250

3 years ago

2.1.248

3 years ago

2.1.249

3 years ago

2.1.246

3 years ago

2.1.247

3 years ago

2.1.245

3 years ago

2.1.242

3 years ago

2.1.244

3 years ago

2.1.243

3 years ago

2.1.241

3 years ago

2.1.240

3 years ago

2.1.239

3 years ago

2.1.238

3 years ago

2.1.237

3 years ago

2.1.236

3 years ago

2.1.231

3 years ago

2.1.233

3 years ago

2.1.232

3 years ago

2.1.235

3 years ago

2.1.234

3 years ago

2.1.230

3 years ago

2.1.229

3 years ago

2.1.228

3 years ago

2.1.226

3 years ago

2.1.227

3 years ago

2.1.224

3 years ago

2.1.225

3 years ago

2.1.222

3 years ago

2.1.223

3 years ago

2.1.221

3 years ago

2.1.219

3 years ago

2.1.220

3 years ago

2.1.218

3 years ago

2.1.217

3 years ago

2.1.216

3 years ago

2.1.208

3 years ago

2.1.209

3 years ago

2.1.211

3 years ago

2.1.210

3 years ago

2.1.213

3 years ago

2.1.212

3 years ago

2.1.215

3 years ago

2.1.214

3 years ago

2.1.207

3 years ago

2.1.206

3 years ago

2.1.205

3 years ago

2.1.204

3 years ago

2.1.203

3 years ago

2.1.202

3 years ago

2.1.200

3 years ago

2.1.201

3 years ago

2.1.199

3 years ago

2.1.198

3 years ago

2.1.194

3 years ago

2.1.196

3 years ago

2.1.195

3 years ago

2.1.197

3 years ago

2.1.192

3 years ago

2.1.193

3 years ago

2.1.191

3 years ago

2.1.190

3 years ago

2.1.189

3 years ago

2.1.188

3 years ago

2.1.185

3 years ago

2.1.187

3 years ago

2.1.186

3 years ago

2.1.184

3 years ago

2.1.179

3 years ago

2.1.181

3 years ago

2.1.180

3 years ago

2.1.183

3 years ago

2.1.182

3 years ago

2.1.176

3 years ago

2.1.178

3 years ago

2.1.177

3 years ago

2.1.170

3 years ago

2.1.172

3 years ago

2.1.171

3 years ago

2.1.174

3 years ago

2.1.173

3 years ago

2.1.175

3 years ago

2.1.169

3 years ago

2.1.168

3 years ago

2.1.167

3 years ago

2.1.166

3 years ago

2.1.165

3 years ago

2.1.159

3 years ago

2.1.161

3 years ago

2.1.160

3 years ago

2.1.163

3 years ago

2.1.162

3 years ago

2.1.164

3 years ago

2.1.158

3 years ago

2.1.157

3 years ago

2.1.156

3 years ago

2.1.155

3 years ago

2.1.154

3 years ago

2.1.153

3 years ago

2.1.152

3 years ago

2.1.151

3 years ago

2.1.150

3 years ago

2.1.149

3 years ago

2.1.148

3 years ago

2.1.143

3 years ago

2.1.144

3 years ago

2.1.142

3 years ago

2.1.141

3 years ago

2.1.140

3 years ago

2.1.139

3 years ago

2.1.138

3 years ago

2.1.134

3 years ago

2.1.136

3 years ago

2.1.135

3 years ago

2.1.137

3 years ago

2.1.133

4 years ago

2.1.132

4 years ago

2.1.131

4 years ago

2.1.130

4 years ago

2.1.129

4 years ago

2.1.128

4 years ago

2.1.127

4 years ago

2.1.125

4 years ago

2.1.124

4 years ago

2.1.126

4 years ago

2.1.123

4 years ago

2.1.121

4 years ago

2.1.122

4 years ago

2.1.119

4 years ago

2.1.120

4 years ago

2.1.118

4 years ago

2.1.117

4 years ago

2.1.116

4 years ago

2.1.114

4 years ago

2.1.115

4 years ago

2.1.112

4 years ago

2.1.111

4 years ago

2.1.113

4 years ago

2.1.110

4 years ago

2.1.109

4 years ago

2.1.108

4 years ago

2.1.107

4 years ago

2.1.106

4 years ago

2.1.103

4 years ago

2.1.105

4 years ago

2.1.104

4 years ago

2.1.102

4 years ago

2.1.101

4 years ago

2.1.100

4 years ago

2.1.98

4 years ago

2.1.99

4 years ago

2.1.97

4 years ago

2.1.96

4 years ago

2.1.94

4 years ago

2.1.95

4 years ago

2.1.93

4 years ago

2.1.92

4 years ago

2.1.91

4 years ago

2.1.90

4 years ago

2.1.89

4 years ago

2.1.88

4 years ago

2.1.87

4 years ago

2.1.86

4 years ago

2.1.85

4 years ago

2.1.83

4 years ago

2.1.84

4 years ago

2.1.82

4 years ago

2.1.81

4 years ago

2.1.80

4 years ago

2.1.79

4 years ago

2.1.78

4 years ago

2.1.76

4 years ago

2.1.77

4 years ago

2.1.74

4 years ago

2.1.75

4 years ago

2.1.72

4 years ago

2.1.73

4 years ago

2.1.71

4 years ago

2.1.70

4 years ago

2.1.69

4 years ago

2.1.68

4 years ago

2.1.67

4 years ago

2.1.65

4 years ago

2.1.66

4 years ago

2.1.63

4 years ago

2.1.64

4 years ago

2.1.62

4 years ago

2.1.61

4 years ago

2.1.60

4 years ago

2.1.58

4 years ago

2.1.59

4 years ago

2.1.57

4 years ago

2.1.56

4 years ago

2.1.54

4 years ago

2.1.55

4 years ago

2.1.53

4 years ago

2.1.52

4 years ago

2.1.50

4 years ago

2.1.51

4 years ago

2.1.49

4 years ago

2.1.47

4 years ago

2.1.48

4 years ago

2.1.46

4 years ago

2.1.45

4 years ago

2.1.43

4 years ago

2.1.44

4 years ago

2.1.41

4 years ago

2.1.42

4 years ago

2.1.40

4 years ago

2.1.39

4 years ago

2.1.38

4 years ago

2.1.36

4 years ago

2.1.37

4 years ago

2.1.35

4 years ago

2.1.34

4 years ago

2.1.32

4 years ago

2.1.33

4 years ago

2.1.30

4 years ago

2.1.28

4 years ago

2.1.27

4 years ago

2.1.26

4 years ago

2.1.25

4 years ago

2.1.24

4 years ago

2.1.23

4 years ago

2.1.21

4 years ago

2.1.22

4 years ago

2.1.20

4 years ago

2.1.19

4 years ago

2.1.18

4 years ago

2.1.17

5 years ago

2.1.15

5 years ago

2.1.14

5 years ago

2.1.12

5 years ago

2.1.11

5 years ago

2.1.10

5 years ago

2.1.9

5 years ago

2.1.8

5 years ago

2.1.7

5 years ago

2.1.6

5 years ago

2.1.5

5 years ago

2.1.4

5 years ago

2.1.3

5 years ago

2.1.2

5 years ago