Start making API calls (e.g. create a user)
var userData = {
clientUserId: "test-client-id-1",
profileType: "INDIVIDUAL",
firstName: "Daffyd",
lastName: "y Goliath",
email: "testmail-1@hyperwallet.com",
addressLine1: "123 Main Street",
city: "Austin",
stateProvince: "TX",
country: "US",
postalCode: "78701",
};
client.createUser(userData, function(errors, body, res) {
if (errors) {
console.log("Create User Failed");
console.log(errors);
} else {
console.log("Create User Response");
console.log(body);
}
});
The displayed callback format is valid for all SDK methods. For more information see the Callback Documentation.