be-api-client
Advanced tools
Comparing version 0.0.66 to 0.0.67
13
index.js
@@ -231,10 +231,7 @@ const rp = require('request-promise-native') | ||
async function addUser(id, role, ethAccountAddress, fullName){ | ||
const form = { | ||
id, | ||
role, | ||
fullName, | ||
ethAccountAddress | ||
} | ||
return await doPost('/users', form) | ||
async function addUser(userProperties){ | ||
/* | ||
* expects at least "id" and "role". Optionally add "ethAccountAddress" and/or "fullName" | ||
*/ | ||
return await doPost('/users', userProperties) | ||
} | ||
@@ -241,0 +238,0 @@ |
{ | ||
"name": "be-api-client", | ||
"version": "0.0.66", | ||
"version": "0.0.67", | ||
"description": "A node.js client for the be-api.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
15140
391