agendize
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -152,18 +152,36 @@ var logger = require('../logger'); | ||
var account = options.account; | ||
// var account = options.account; | ||
var paymentProfile = options.payment_profile; | ||
// var paymentProfile = options.payment_profile; | ||
var data = { | ||
hostname:options.hostname, | ||
lastName:account.lastname, | ||
firstName:account.firstname, | ||
email:account.email, | ||
password:account.password, | ||
preferences:account.preferences, | ||
profile:paymentProfile, | ||
tools:account.tools, | ||
sendSignupEmail:options.sendSignupEmail | ||
}; | ||
// var data = { | ||
// hostname:options.hostname, | ||
// lastName:account.lastname, | ||
// firstName:account.firstname, | ||
// email:account.email, | ||
// password:account.password, | ||
// preferences:account.preferences, | ||
// profile:paymentProfile, | ||
// tools:account.tools, | ||
// sendSignupEmail:options.sendSignupEmail | ||
// }; | ||
data = options.account; | ||
if(options.payment_profile){ | ||
data.profile = payment_profile; | ||
} | ||
if(options.hostname){ | ||
data.hostname = options.hostname; | ||
} | ||
if(options.lastname){ | ||
data.lastName = options.lastname; | ||
} | ||
if(options.firstname){ | ||
data.firstName = options.firstName; | ||
} | ||
httpsClient.doAgendizeRequest('POST','/api/2.0/resellers/accounts',data,credentials,function(err,result){ | ||
@@ -170,0 +188,0 @@ if(err) |
{ | ||
"name": "agendize", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"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", |
1988048
32821