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.
Gets the details for a specific user by their user id.
Read /users/:userId/organizations/
documentation for more details.
sdk.organizations.getByUser(userId: string): Promise<Paginated<Organization[]>>
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(' ')}.`);
});