1.0.0 • Published 7 years ago

kiana-api v1.0.0

Weekly downloads
3
License
-
Repository
-
Last release
7 years ago

kiana_api

KianaApi - JavaScript client for kiana_api No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) This SDK is automatically generated by the Swagger Codegen project:

  • API version: 2.0
  • Package version: 2.0
  • Build package: io.swagger.codegen.languages.JavascriptClientCodegen

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 kiana_api --save
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

Finally, switch to the directory you want to use your kiana_api from, and run:

npm link /path/to/<JAVASCRIPT_CLIENT_DIR>

You should now be able to require('kiana_api') in javascript files from the directory you ran the last command above from.

git

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

    npm install YOUR_USERNAME/kiana_api --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, that's to say your javascript file where you actually use this library):

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 KianaApi = require('kiana_api');

var api = new KianaApi.AuthenticatedtokencontrollerApi()

var nonce = "nonce_example"; // {String} Nonce

var requestTime = "requestTime_example"; // {String} Request-Time

var credentialsParam = new KianaApi.Credentials(); // {Credentials} credentialsParam

var authorization = "authorization_example"; // {String} Api Key


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createAuthenticatedTokenUsingPOST(nonce, requestTime, credentialsParam, authorization, callback);

Documentation for API Endpoints

All URIs are relative to https://192.168.135.3:8082

ClassMethodHTTP requestDescription
KianaApi.AuthenticatedtokencontrollerApicreateAuthenticatedTokenUsingPOSTPOST /v2/api/authenticatedtokensCreate authentication token.
KianaApi.AuthenticatedtokencontrollerApideleteAuthenticatedTokenUsingDELETEDELETE /v2/api/authenticatedtokens/{authenticatedTokenId}Delete user by id.
KianaApi.CameramonitorcontrollerApideleteCameraUsingDELETEDELETE /v2/api/cameras/{cameraId}Delete camera from map.
KianaApi.CameramonitorcontrollerApigetCameraUsingGETGET /v2/api/cameras/{cameraId}Get camera.
KianaApi.CameramonitorcontrollerApigetCamerasUsingGETGET /v2/api/camerasGet cameras.
KianaApi.CameramonitorcontrollerApisaveCamerasUsingPOSTPOST /v2/api/camerasAdd camera to map.
KianaApi.CameramonitorcontrollerApiupdateCamerasUsingPUTPUT /v2/api/cameras/{cameraId}Update camera on map.
KianaApi.DevicetokencontrollerApicreateDeviceTokenUsingPOSTPOST /v2/api/devices/tokenscreateDeviceToken
KianaApi.DevicetokencontrollerApideleteDeviceTokenUsingDELETEDELETE /v2/api/devices/tokens/{token}deleteDeviceToken
KianaApi.GeofencenotealertcontrollerApichangeGeofenceNoteAlertStatusUsingPATCHPATCH /v2/api/geofence-note-alerts/{alertId}Change geofence note alert status.
KianaApi.GeofencenotealertcontrollerApigetGeoNoteAlertsUsingGETGET /v2/api/geofence-note-alertsGet alerts for geofence note.
KianaApi.GeofencenotecontrollerApideleteGeoNoteUsingDELETEDELETE /v2/api/geofence-notes/{geofenceNoteId}Delete geofence note.
KianaApi.GeofencenotecontrollerApigetGeoNoteAttachmentUsingGETGET /v2/api/geofence-notes/{geofenceNoteId}/attachmentsGet geofence note attachments.
KianaApi.GeofencenotecontrollerApigetGeoNoteUsingGETGET /v2/api/geofence-notes/{geofenceNoteId}Find geofence note by id.
KianaApi.GeofencenotecontrollerApigetGeoNotesUsingGETGET /v2/api/geofence-notesGet geofence notes.
KianaApi.GeofencenotecontrollerApisaveGeoNoteUsingPOSTPOST /v2/api/geofence-notesCreate geofence note.
KianaApi.GeofencenotecontrollerApiupdateGeoNoteUsingPUTPUT /v2/api/geofence-notes/{geofenceNoteId}Update geofence note.
KianaApi.MediacontrollerApisaveMediasUsingPOSTPOST /v2/api/mediasUpload medias.
KianaApi.MonitorcontrollerApideleteMonitorUsingDELETEDELETE /v2/api/monitors/{monitorId}Delete monitor from map.
KianaApi.MonitorcontrollerApigetMonitorUsingGETGET /v2/api/monitors/{monitorId}Get monitor.
KianaApi.MonitorcontrollerApigetMonitorsUsingGETGET /v2/api/monitorsGet monitors.
KianaApi.MonitorcontrollerApigetTypesUsingGETGET /v2/api/monitors/typesGet types.
KianaApi.MonitorcontrollerApisaveMonitorsUsingPOSTPOST /v2/api/monitorsAdd monitor to map.
KianaApi.MonitorcontrollerApiupdateMonitorsUsingPUTPUT /v2/api/monitors/{monitorId}Update monitor on map.
KianaApi.PermissioncontrollerApigetPermissionsUsingGETGET /v2/api/permissionsGet permissions.
KianaApi.RolecontrollerApigetRolesUsingGETGET /v2/api/rolesGet roles.
KianaApi.TagcontrollerApigetTagsUsingGETGET /v2/api/tagsGet tags.
KianaApi.TagcontrollerApisaveTagsUsingPOSTPOST /v2/api/tagsCreate tags.
KianaApi.TrackableobjectcontrollerApifindTrackableUsingGETGET /v2/api/trackables/{trackableId}Get trackable info
KianaApi.TrackableobjectcontrollerApigetRisksUsingGETGET /v2/api/trackables/risksGet risks.
KianaApi.TrackableobjectcontrollerApigetTrackablesUsingGETGET /v2/api/trackables/{trackableId}/trackeventsGet track events for trackable. If only from date defined - to date will be current date.
KianaApi.TrackableobjectcontrollerApigetTrackablesUsingGET1GET /v2/api/trackablesGet for trackables
KianaApi.TrackableobjectcontrollerApigetTypesUsingGET1GET /v2/api/trackables/typesGet types.
KianaApi.TrackableobjectcontrollerApiupdateTrackableUsingPUTPUT /v2/api/trackables/{trackableId}Update trackable info
KianaApi.UsercontrollerApideleteUserUsingDELETEDELETE /v2/api/users/{userId}Delete user by id.
KianaApi.UsercontrollerApigetUserUsingGETGET /v2/api/users/meGet current user information.
KianaApi.UsercontrollerApigetUserUsingGET1GET /v2/api/users/{userId}Find user by id.
KianaApi.UsercontrollerApigetUsersUsingGETGET /v2/api/usersGet users.
KianaApi.UsercontrollerApiinsertUserUsingPOSTPOST /v2/api/usersAdd a new user.
KianaApi.UsercontrollerApiupdateUserUsingPUTPUT /v2/api/users/{userId}Update user.
KianaApi.UsercontrollerApiverifyUsingPOSTPOST /v2/api/users/{userId}Verify user.
KianaApi.VideoprovidercontrollerApigetCameraUsingGET1GET /v2/api/video-providers/camerasGet all cameras
KianaApi.VideoprovidercontrollerApigetCameraVideoUsingGETGET /v2/api/video-providers/cameras/{cameraId}/videoGet video URL
KianaApi.VideoprovidercontrollerApigetCamerasUsingGET1GET /v2/api/video-providers/cameras/{cameraId}Get camera by id

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.