This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.
Working with Users in Eventbrite
Overview
The following operations allow you to work with users. Click an operation name to see details on how to use it.
For a sample proxy service that illustrates how to work with users, see Sample configuration.
Operation | Description |
---|---|
getUserDetails | Retrieves the information of a user. |
getUserOrders | Retrieves the orders that are have been created by a user. |
Retrieves the event associated with a user. | |
getUserOwnedEventOrders | Retrieves the orders to an event associated with a user. |
getUserOwnedEventsAttendees | Retrieves the attendees for an event associated with a user. |
getUserVenues | Retrieves all the venues that have been created or admin-accessible by a specific user. |
getUserOrganisers | Retrieves organisers that are have been created by a specific user |
createUserOrganisers | Creates organizers. |
createUserVenues | Creates venues. |
Operation details
This section provides further details on the operations related to events.
UserDetails
<eventbrite.getUserDetails> <userId>{$ctx:userId}</userId> </eventbrite.getUserDetails>
Returns the detailed information about a specific User. Use the operation with the following parameters.
Properties
userId: Id of the user.
Sample Request
Following is a sample REST request that can be handled by the getUserDetails operation.
{ "apiUrl":"https://www.eventbriteapi.com", "accessToken":”<accessToken>", "userId":"<userId>" }
Related API Documentation
UserOrders
<eventbrite.getUserOrder> <userId>{$ctx:userId}</userId> </eventbrite.getUserOrder>
Returns the orders that are have been created by a specific user. Use the operation with the following parameters.
Properties
- userId: Id of the user.
Sample Request
Following is a sample REST request that can be handled by the getUserOrder operation.
{ "apiUrl":"https://www.eventbriteapi.com", "accessToken":”<accessToken>", "userId":"<userId>" }
Related API Documentation
http://developer.eventbrite.com/docs/user-orders/
UserOwnedEvents
<eventbrite.getUserOwnedEvents> <userId>{$ctx:userId}</userId> <status>{$ctx:status}</status> <orderBy>{$ctx:orderBy}</orderBy> </eventbrite.getUserOwnedEvents>
Returns the event associated with a specific user.Use the operation with the following parameters.
Properties
- userId : Id of the user who owns the event.
- status : (Optional) status of the event valid formats are “all”, “cancelled”, “draft”, ”live”, “started”, “ended”
- orderBy: (Optional) Sorts the events. Valid formats are ‘start_asc’, ‘start_desc’, ‘created_asc’, ‘created_desc’
Sample Request
Following is a sample REST request that can be handled by the getUserOwnedEvents operation.
{ "apiUrl":"https://www.eventbriteapi.com", "accessToken":”<accessToken>", "userId":"<userId>", ”status”:”<status>”, “orderBy”:”<orderBy>” }
Related API Documentation
http://developer.eventbrite.com/docs/user-owned-events/
UserOwnedEventOrders
<eventbrite.getUserOwnedEventsOrders> <userId>{$ctx:userId}</userId> <changedSince>{$ctx:changedSince}</changedSince> </eventbrite.getUserOwnedEventsOrders>
Returns the orders to an event associated with a specific user. Use the operation with the following parameters.
Properties
- userId : Id of the user who owns the event.
- changedSince : A timestamp value to receive attendee records that have been changed since the time stamp. valid format - 2012-03-02T01:24:09Z
Sample Request
Following is a sample REST request that can be handled by the getUserOwnedEventsOrders operation.
{ "apiUrl":"https://www.eventbriteapi.com", "accessToken":”<accessToken>", "userId":"<userId>", "changedSince":"<changedSince>" }
Related API Documentation
http://developer.eventbrite.com/docs/user-owned-events-orders/
UserOwnedEventsAttendees
<eventbrite.getUserOwnedEventAttendees> <userId>{$ctx:userId}</userId> <expand>{$ctx:expand}</expand> </eventbrite.getUserOwnedEventAttendees>
Returns the attendees for an event associated with a specific user. Use the operation with the following parameters.
Properties
- userId : Id of the user.
- expand: (Optional) gives the promotional_code and assigned_number valid format is ‘promotional_code’, ‘assigned_number’
Sample Request
Following is a sample REST request that can be handled by the getUserOwnedEventAttendees operation.
{ "apiUrl":"https://www.eventbriteapi.com", "accessToken":”<accessToken>", "userId":"<userId>", "expand":"<expand>" }
Related API Documentation
http://developer.eventbrite.com/docs/user-owned-events-attendees/
UserVenues
<eventbrite.getUserVenues> <userId>{$ctx:userId}</userId> </eventbrite.getUserVenues>
Returns all the venues that have been created or admin-accessible by a specific user.Use the operation with the following parameters.
Properties
- userId : Id of the user.
Sample Request
Following is a sample REST request that can be handled by the getUserVenues operation.
{ "apiUrl":"https://www.eventbriteapi.com", "accessToken":”<accessToken>", "userId":"<userId>" }
Related API Documentation
http://developer.eventbrite.com/docs/user-venues/
UserOrganisers
<eventbrite.getUserOrganizers> <userId>{$ctx:userId}</userId> </eventbrite.getUserOrganizers>
Returns organizers that are have been created by a specific user. Use the operation with the following parameters.
Properties
- userId : Id of the user.
Sample Request
Following is a sample REST request that can be handled by the getUserOrganizers operation.
{ "apiUrl":"https://www.eventbriteapi.com", "accessToken":”<accessToken>", "userId":"<userId>" }
Related API Documentation
http://developer.eventbrite.com/docs/user-organizers/
CreateUserOrganisers
<eventbrite.createOrganizer> <name>{$ctx:name}</name> <description>{$ctx:description}</description> <id>{$ctx:id}</id> </eventbrite.createOrganizer>
creates organizers.Use the operation with the following parameters.
Properties
- name : name of the organiser
- description : description of the organizer.(Optional)
- Id : id of the organizer.(Optional)
Sample Request
Following is a sample REST request that can be handled by the createOrganizer operation.
{ "apiUrl":"https://www.eventbriteapi.com", "accessToken":”<accessToken>", "name":"<name>", "description":"<description>", "id":"<id>" }
Related API Documentation
https://developer.eventbrite.com/docs/user-organizers/
CreateUserVenues
xml
<eventbrite.createUserVenues> <venueName>{$ctx:venueName}</venueName> <address1>{$ctx:address1}</address1> <address2>{$ctx:address2}</address2> <city>{$ctx:city}</city> <region>{$ctx:region}</region> <postcode>{$ctx:postcode}</postcode> <country>{$ctx:country}</country> <latitude>{$ctx:latitude}</latitude> <longitude>{$ctx:longitude}</longitude> </eventbrite.createUserVenues>
creates venues.Use the operation with the following parameters.
Properties
venueName : Name of the venue.(Mandatory)
address1 : Address1 of the venue (Mandatory)
- city : City of the venue.(Mandatory)
- region : Region of the venue.(Mandatory)
- postcode : Postcode of the venue.(Mandatory)
- country : Country of the venue.(Mandatory)
- address2 : Description of the venue.(Optional)
- latitude : Latitude of the venue.(Optional)
- longitude : Longitude of the venue.(Optional)
Sample Request
Following is a sample REST request that can be handled by the createUserVenues operation.
{ "apiUrl":"https://www.eventbriteapi.com", "accessToken":"<accessToken>", "venueName":"<venueName>", "address1":"<address1>", "address2":"<address2>", "city":"<city>", "region":"<region>", "postcode":"<postcode>", "country":"<country>", "latitude":"<latitude>", "longitude":"<longitude>" }
Related API Documentation
https://developer.eventbrite.com/docs/user-venues/
Sample Configuration
Following is a sample proxy service illustrates how to connect to Eventbrite with the init operation and use the getUserOwnedEvents operation.The sample request for this proxy can be found above.
<proxy xmlns="http://ws.apache.org/ns/synapse" name="createUserVenues" transports="https,http" statistics="disable" trace="disable" startOnLoad="true"> <target> <inSequence> <property name="apiUrl" expression="json-eval($.apiUrl)"/> <property name="accessToken" expression="json-eval($.accessToken)"/> <property name="venueName" expression="json-eval($.venueName)"/> <property name="address1" expression="json-eval($.address1)"/> <property name="address2" expression="json-eval($.address2)"/> <property name="city" expression="json-eval($.city)"/> <property name="region" expression="json-eval($.region)"/> <property name="postcode" expression="json-eval($.postcode)"/> <property name="country" expression="json-eval($.country)"/> <property name="latitude" expression="json-eval($.latitude)"/> <property name="longitude" expression="json-eval($.longitude)"/> <eventbrite.init> <apiUrl>{$ctx:apiUrl}</apiUrl> <accessToken>{$ctx:accessToken}</accessToken> </eventbrite.init> <eventbrite.createUserVenues> <venueName>{$ctx:venueName}</venueName> <address1>{$ctx:address1}</address1> <address2>{$ctx:address2}</address2> <city>{$ctx:city}</city> <region>{$ctx:region}</region> <postcode>{$ctx:postcode}</postcode> <country>{$ctx:country}</country> <latitude>{$ctx:latitude}</latitude> <longitude>{$ctx:longitude}</longitude> </eventbrite.createUserVenues> <respond/> </inSequence> <outSequence> <log/> <send/> </outSequence> </target> <description/> </proxy>