1.1.0 • Published 6 years ago

crowdemotion-api-client-js v1.1.0

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
6 years ago

crowdemotion-api-client-js

CrowdemotionApiClientJs - JavaScript client for crowdemotion-api-client-js CrowdEmotion API This SDK is automatically generated by the Swagger Codegen project:

  • API version: 1.1.0
  • Package version: 1.1.0
  • Build date: 2016-08-11T15:53:22.718+01:00
  • Build package: class 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 crowdemotion-api-client-js --save

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.

Getting Started

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

var CrowdemotionApiClientJs = require('crowdemotion-api-client-js');

var defaultClient = CrowdemotionApiClientJs.ApiClient.default;

// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix['Authorization'] = "Token"

var api = new CrowdemotionApiClientJs.FaceVideoApi()

var facevideoId = 56; // {Integer} ID of FaceVideo to be deleted.


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

Documentation for API Endpoints

All URIs are relative to https://api.crowdemotion.co.uk/v1

ClassMethodHTTP requestDescription
CrowdemotionApiClientJs.FaceVideoApifacevideoFacevideoIdDeleteDELETE /facevideo/{facevideo_id}Delete a FaceVideo
CrowdemotionApiClientJs.FaceVideoApifacevideoGetGET /facevideoFind a FaceVideo
CrowdemotionApiClientJs.FaceVideoApifacevideoPostPOST /facevideoAnalyse FaceVideo
CrowdemotionApiClientJs.FaceVideoApifacevideoPutPUT /facevideoAnalyse FaceVideo
CrowdemotionApiClientJs.MediaApimediaGetGET /mediaFind all registered Media
CrowdemotionApiClientJs.MediaApimediaMediaIdDeleteDELETE /media/{media_id}Delete Media
CrowdemotionApiClientJs.MediaApimediaMediaIdGetGET /media/{media_id}Find a Media
CrowdemotionApiClientJs.MediaApimediaMediaIdPutPUT /media/{media_id}Update a Media
CrowdemotionApiClientJs.MediaApimediaPostPOST /mediaCreate new Media
CrowdemotionApiClientJs.MetricApimetricGetGET /metricList all registered metrics
CrowdemotionApiClientJs.MetricApimetricMetricIdDeleteDELETE /metric/{metric_id}Delete a Metric
CrowdemotionApiClientJs.MetricApimetricMetricIdGetGET /metric/{metric_id}Find a Metric
CrowdemotionApiClientJs.MetricApimetricPostPOST /metricCreate Metric
CrowdemotionApiClientJs.ResearchApiresearchGetGET /researchFind all Research
CrowdemotionApiClientJs.ResearchApiresearchPostPOST /researchCreate a Research Project
CrowdemotionApiClientJs.ResearchApiresearchResearchIdDeleteDELETE /research/{research_id}Delete Research Project
CrowdemotionApiClientJs.ResearchApiresearchResearchIdGetGET /research/{research_id}Find a Research Project
CrowdemotionApiClientJs.ResearchApiresearchResearchIdPutPUT /research/{research_id}Edit Research Project details
CrowdemotionApiClientJs.RespondentApirespondentGetGET /respondentFind all Respondents of a Research
CrowdemotionApiClientJs.RespondentApirespondentPostPOST /respondentCreate a Respondent
CrowdemotionApiClientJs.RespondentApirespondentRespondentIdDeleteDELETE /respondent/{respondent_id}Delete a Respondent
CrowdemotionApiClientJs.RespondentApirespondentRespondentIdGetGET /respondent/{respondent_id}Find a Respondent
CrowdemotionApiClientJs.RespondentApirespondentRespondentIdMetadataGetGET /respondent/{respondent_id}/metadataFind Respondent Metadata
CrowdemotionApiClientJs.RespondentApirespondentRespondentIdMetadataPostPOST /respondent/{respondent_id}/metadataAdd Respondent Metadata
CrowdemotionApiClientJs.RespondentApirespondentRespondentIdPutPUT /respondent/{respondent_id}Update a Respondent
CrowdemotionApiClientJs.ResponseApiresponseGetGET /responseFind all Responses
CrowdemotionApiClientJs.ResponseApiresponsePostPOST /responseCreate a Response
CrowdemotionApiClientJs.ResponseApiresponseResponseIdDeleteDELETE /response/{response_id}Delete a Response
CrowdemotionApiClientJs.ResponseApiresponseResponseIdGetGET /response/{response_id}Find a Response
CrowdemotionApiClientJs.ResponseApiresponseResponseIdMetadataGetGET /response/{response_id}/metadataShow Response Metadata
CrowdemotionApiClientJs.ResponseApiresponseResponseIdMetadataPostPOST /response/{response_id}/metadataAdd Response Metadata
CrowdemotionApiClientJs.ResponseApiresponseResponseIdPutPUT /response/{response_id}Update a Response
CrowdemotionApiClientJs.TimeseriesApitimeseriesDeleteDELETE /timeseriesDelete a Timeseries
CrowdemotionApiClientJs.TimeseriesApitimeseriesGetGET /timeseriesGet all recorded timeseries for a Response
CrowdemotionApiClientJs.UserApiuserIdGetGET /user/{id}Get User information
CrowdemotionApiClientJs.UserApiuserIdPutPUT /user/{id}Edit User information
CrowdemotionApiClientJs.UserApiuserLoginPostPOST /user/loginUser Login
CrowdemotionApiClientJs.UserApiuserUserIdMetadataGetGET /user/{user_id}/metadataFind User metadata
CrowdemotionApiClientJs.UserApiuserUserIdMetadataPostPOST /user/{user_id}/metadataAdd user metadata

Documentation for Models

Documentation for Authorization

api_key

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header