agendize
Advanced tools
Comparing version 0.0.67 to 0.0.68
@@ -112,2 +112,26 @@ var logger = require('../logger'); | ||
this.updateCompany = function(options,credentials,callback){ | ||
logger.log(logger.LEVEL_DEBUG,"AgendizeSchedulingAPI - updateCompany() started ") | ||
var company = options.company; | ||
var companyId = options.company_id | ||
var data = company; | ||
httpsClient.doAgendizeRequest('PUT','/api/2.0/scheduling/companies/'+companyId,data,credentials,function(err,result){ | ||
logger.log(logger.LEVEL_DEBUG,"AgendizeSchedulingAPI - updateCompany() finished") | ||
if(err){ | ||
callback(err) | ||
} | ||
else{ | ||
callback(null,result) | ||
} | ||
}); | ||
} | ||
this.createService= function(options,credentials,callback){ | ||
@@ -114,0 +138,0 @@ logger.log(logger.LEVEL_DEBUG,"AgendizeSchedulingAPI - createService() started") |
@@ -139,3 +139,8 @@ var pjson = require('./package.json'); | ||
requiredParams:['staffs','services'] | ||
} | ||
}, | ||
'updateCompany':{ | ||
agendizeFunction:'updateCompany', | ||
agendizeService:'scheduling', | ||
requiredParams:['company_id','company'] | ||
}, | ||
} | ||
@@ -142,0 +147,0 @@ |
{ | ||
"name": "agendize", | ||
"version": "0.0.67", | ||
"version": "0.0.68", | ||
"description": "An npm package for Node.Js to interact with Agendize (https://www.agendize.com/) through API (http://developers.agendize.com/). It allows to create accounts under partner accounts. Or easily build an oAuth2 application. Create companies, services, staffs, appointments. Get a SSO url of an account.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -6,2 +6,3 @@ var errors = require('../errors'); | ||
this.updateCompany = schedulingAPI.updateCompany; | ||
this.createCompany = schedulingAPI.createCompany; | ||
@@ -8,0 +9,0 @@ this.createStaff = schedulingAPI.createStaff; |
1983866
32685