[nodejs] Re: Any help would be GREATLY appreciated!!

2016-05-18 Thread Ulion
var createUser = { auth: auth, "resource": { "name": { "givenName": newUser.First, "familyName": newUser.Last }, "password": "mcs12345", "primaryEmail": newUser.District_Email, "changePasswordAtNextLogin": false, "orgUnitPath": "/Staff" } }; On

[nodejs] Re: Any help would be GREATLY appreciated!!

2016-05-06 Thread Christopher Mina
If you take a look at the code: https: //github.com/google/google-api-nodejs-client/blob/master/apis/admin/directory_v1.js you can see the directory-v1 -> users object and the insert() method. It takes a "params" argument. This params argument gets wrapped as a larger "parameters" argument

[nodejs] Re: Any help would be GREATLY appreciated!!

2016-05-05 Thread Scott Croskey
I saw that post, but did not know how to do that. On Thursday, May 5, 2016 at 12:04:34 AM UTC-4, Christopher Mina wrote: > > Hi. > > I'm not familiar with the library, but your code generally look ok. > > Check out this StackOverflow post, maybe it's as simple as setting the > header

[nodejs] Re: Any help would be GREATLY appreciated!!

2016-05-04 Thread Christopher Mina
Hi. I'm not familiar with the library, but your code generally look ok. Check out this StackOverflow post, maybe it's as simple as setting the header ContentType to application/json? Would be an improper error message if so, but hey, stranger things have happened: