Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 1.31 KB

organizations.md

File metadata and controls

39 lines (26 loc) · 1.31 KB

Organizations

This is a collection of methods that are intended to be helpful wrappers around the organizations API endpoints.

View the Organizations response object for details on the properties you'll get back with each response.

Table on Contents

sdk.organizations.getByUser(id)

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

Read /users/:userId/organizations/ documentation for more details.

API

sdk.organizations.getByUser(userId: string): Promise<Paginated<Organization[]>>

Example

const eventbrite = require('eventbrite');

// Create configured Eventbrite SDK
const sdk = eventbrite({token: 'OATH_TOKEN_HERE'});

sdk.organizations.getByUser('1234567890').then((paginatedResponse) => {
    console.log(`Here are your organizations: ${paginatedResponse.organizations.join(' ')}.`);
});