1.0.0 • Published 9 years ago

vmoso-task-api v1.0.0

Weekly downloads
1
License
Apache-2.0
Repository
-
Last release
9 years ago

vmoso-task-api

VmosoTaskApi - JavaScript client for vmoso-task-api Description about Task API This SDK is automatically generated by the Swagger Codegen project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build date: 2016-06-22T14:07:17.495Z
  • 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 vmoso-task-api --save

git

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

    npm install YOUR_USERNAME/vmoso-task-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):

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 VmosoTaskApi = require('vmoso-task-api');

var defaultClient = VmosoTaskApi.ApiClient.default;

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

var api = new VmosoTaskApi.TaskApi()

var key = "key_example"; // {String} 

var input = new VmosoTaskApi.AddParticipantsInput(); // {AddParticipantsInput} AddParticipants Input


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

Documentation for API Endpoints

All URIs are relative to https://www.vmoso.com/svc

ClassMethodHTTP requestDescription
VmosoTaskApi.TaskApiaddParticipantsPUT /tasks/{key}/participants/add
VmosoTaskApi.TaskApicheckAttachmentsInTaskGET /tasks/{key}/checkAttachmentKeys
VmosoTaskApi.TaskApicheckTemplateNamePOST /tasks/checktplname
VmosoTaskApi.TaskApicloneToDraftPOST /tasks/{key}/saveAsDraft
VmosoTaskApi.TaskApicloneToTemplatePOST /tasks/{key}/saveAsTemplate
VmosoTaskApi.TaskApicreateChatPOST /tasks/createChat
VmosoTaskApi.TaskApicreateDraftPOST /tasks/createDraft
VmosoTaskApi.TaskApicreateFromDraftPOST /tasks/createTaskByDraft/{key}
VmosoTaskApi.TaskApicreateTaskPOST /tasks
VmosoTaskApi.TaskApicreateTemplatePOST /tasks/createTemplate
VmosoTaskApi.TaskApideleteTaskDELETE /tasks/{key}
VmosoTaskApi.TaskApigetChatBriefGET /tasks/getChatBrief/{key}
VmosoTaskApi.TaskApigetDraftGET /tasks/viewDraft/{key}
VmosoTaskApi.TaskApigetFeedbackTaskGET /tasks/feedback
VmosoTaskApi.TaskApigetHistoryGET /tasks/{key}/history
VmosoTaskApi.TaskApigetMembersForReminderGET /tasks/{key}/remindableMember
VmosoTaskApi.TaskApigetParticipantsGET /tasks/{key}/participants/sort/{sortType}
VmosoTaskApi.TaskApigetRelatedTasksGET /tasks/{key}/getRelated/
VmosoTaskApi.TaskApigetTaskGET /tasks/{key}
VmosoTaskApi.TaskApigetTemplateGET /tasks/viewTemplate/{key}
VmosoTaskApi.TaskApigetUserRolesInTaskGET /tasks/{key}/checkUserKeys
VmosoTaskApi.TaskApirejectTaskPUT /tasks/{key}/reject
VmosoTaskApi.TaskApiremoveParticipantsPUT /tasks/{key}/participants/remove
VmosoTaskApi.TaskApisendReminderPUT /tasks/{key}/remind
VmosoTaskApi.TaskApiunsubscribeAlienPOST /tasks/alienUnsubscribe
VmosoTaskApi.TaskApiupdateDraftPUT /tasks/updateDraft
VmosoTaskApi.TaskApiupdateStatePUT /tasks/{key}/setState/{stateType}
VmosoTaskApi.TaskApiupdateStatusPUT /tasks/{key}/setStatus/{statusType}
VmosoTaskApi.TaskApiupdateTaskPUT /tasks/{key}
VmosoTaskApi.TaskApiupdateTemplatePUT /tasks/updateTemplate
VmosoTaskApi.TaskApiverifyParticipantEmailsGET /tasks/participants/checkEmails

Documentation for Models

Documentation for Authorization

vmoso_auth

  • Type: API key
  • API key parameter name: X-CV-Authorization
  • Location: HTTP header
1.0.0

9 years ago