Skip to content

Latest commit

 

History

History
66 lines (45 loc) · 1.59 KB

users.md

File metadata and controls

66 lines (45 loc) · 1.59 KB

Users

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.

Table on Contents

sdk.users.me()

Gets details about the current logged in user.

Read /users/me documentation for more details.

API

sdk.users.me(): Promise<User>

Example

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}!`);
});

sdk.users.get(id)

Gets the details for a specific user by their user id.

Read /users/:id documentation for more details.

API

sdk.users.get(id: string): Promise<User>

Example

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}!`);
});