Hi,
I am using google people api. I am trying to create user with Node.js. But even if I get 200 it doesn't create users. What is the reason of this. Also, if there is no one here to help with node.js, can we do it in .NET?
Code
const { google } = require('googleapis');
const people = google.people('v1');
const path = require('path');
async function main() {
const keyFile = path.join(__dirname, "crediantials.json");
const auth = new google.auth.GoogleAuth({
keyFile: keyFile,
scopes: ['https://www.googleapis.com/auth/contacts'],
});
const authClient = await auth.getClient();
google.options({ auth: authClient });
const response = await people.people.createContact({
requestBody: {
phoneNumbers:[
{
value:"0554 968 00 00"
}
]
}
});
console.log(response);
}