This is a collection of method that are intended to be helpful wrappers around the Users API endpoints.
View the User response object for details on the properties you'll get back with each response.
Gets details about the current logged in user.
Read /users/me
documentation for more details.
sdk.users.me(): Promise<User>
const eventbrite = require('eventbrite');
// Create configured Eventbrite SDK
const sdk = eventbrite({token: 'OATH_TOKEN_HERE'});
sdk.users.me().then((user) => {
console.log(`Hi ${user.name}!`);
});
Gets the details for a specific user by their user id.
Read /users/:id
documentation for more details.
sdk.users.get(id: string): Promise<User>
const eventbrite = require('eventbrite');
// Create configured Eventbrite SDK
const sdk = eventbrite({token: 'OATH_TOKEN_HERE'});
sdk.users.get('1234567890').then((user) => {
console.log(`Hi ${user.name}!`);
});