Skip to content

ghurlman/EventBrite.WinStore

Repository files navigation

#EventBrite.WinStore#

##Description## A wee lil' dynamic, C#-based web client for the Eventbrite API. Named "WinStore" because it was built to the limitations of the Windows App Store API, but it can be used by any .Net 4.0+ application.

Inspired by the eventbrite-client.rb project.

##Usage Examples##

###Initializing the client### Your API / Application key is required to initialize the client - http://eventbrite.com/api/key

Set your user_key if you want to access private data - http://eventbrite.com/userkeyapi

dynamic auth_tokens = new ExpandoObject(); // any IEnumerable will do here
auth_tokens.app_key = "YOUR_APP_KEY";
auth_tokens.user_key = "YOUR_USER_KEY";
dynamic client = new EventBriteClient(auth_tokens);

###Initializing the client using an OAuth2.0 access_token### You can also initialize our API client using an OAuth2.0 access_token, like this:

dynamic auth_tokens = new ExpandoObject(); // any IEnumerable will do here
auth_tokens.access_token = "YOUR_OAUTH2_ACCESS_TOKEN";
dynamic client = new EventBriteClient(auth_tokens);

###Calling API methods###

To call an EventBrite API method, simply invoke the method right from the client, and pass in named parameters that match the API parameters.

See Eventbrite's API method documentation for more information about the list of available client methods.

Here is an example using the API's event_list_attendees method:

var result = client.event_list_attendees();

The event_get API call should look like this:

var result = client.event_get(id: 1848891083);

The event_search API call might look like this:

var result = client.event_search(keywords: "Yankees OR Rangers", category: "sports", region: "NY");

##License Information## The MIT License (MIT)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

##Resources##

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages