Get a Specific User
This help page will guide you through the process of retrieving a user's details from your organization using the eNotaryLog Notarization API. You'll need your API access token to proceed.
Requirements
- You need to have Node.js installed on your system.
- You'll also need the axios library. You can install it using the following command:
npm install axios
Retrieve a User's Details
Use the following code snippet to retrieve a user's details by their unique ID. Replace <accessToken>
with your API access token and <userId>
with the user's unique ID.
const axios = require('axios');
const userId = '<userId>';
const config = {
method: 'get',
url: `https://public-api.enotarylog.com/users/${userId}`,
headers: {
'Authorization': 'Bearer <accessToken>'
}
};
axios(config)
.then(function (response) {
console.log('User details retrieved successfully:', response.data);
})
.catch(function (error) {
console.log(error);
});
Steps to Execute the Code Snippet
- Create a new file named
get_user_by_id.js
. - Copy and paste the code snippet provided above into the new file.
- Replace
<accessToken>
with your API access token and<userId>
with the user's unique ID. - Save the file and open a terminal or command prompt.
- Navigate to the folder where you saved the
get_user_by_id.js
file. - Run the following command:
node get_user_by_id.js
Additional Resources
For more information about the Notarization API, visit the official documentation.
If you need further assistance or have questions, feel free to reach out to our support team.