Use this method to obtain a specific user registered in a Assist instance. To obtain the data of multiple users, you need to send a separate request for each user.
client.getUser('<email_address>').then(data => {}).catch(error => {})
This method requires the email address of the user you want to obtain.
The getUser
method returns the requested user. For the full response model, please see the Responses section for the GET /users/public
endpoint on the Assist API Routes page.
An example call could have the following structure:
client.getUser('email@email.com').then(function(result){
console.log(result);
});