Skip to content

viagogo/gogokit.net

Repository files navigation

GogoKit - viagogo API Client Library for .NET

NuGet version GogoKit.NET - CI

GogoKit is a lightweight, async viagogo API client library for .NET. Our developer site documents all of the viagogo APIs.

Getting Started

GogoKit is available on NuGet.

Install-Package GogoKit

Usage

// All methods require OAuth2 authentication. To get OAuth2 credentials for your
// application, see http://developer.viagogo.net/#authentication.
var client = new ViagogoClient(new ProductHeaderValue("AwesomeApp", "1.0"),
                               CLIENT_ID,
                               CLIENT_SECRET);

// Get an access token. See http://developer.viagogo.net/#getting-access-tokens
var token = await client.OAuth2.GetClientAccessTokenAsync(/*List of scopes*/ new string[] {});
await client.TokenStore.SetTokenAsync(token);

// Get a list of events, categories, venues and metro areas that match the given
// search query
var searchResults = await client.Search.GetSearchResultsAsync("FC Barcelona tickets");

// Get the different event genres (see http://developer.viagogo.net/#entities)
var genres = await client.Categories.GetAllGenresAsync();

Sandbox Environment

// You can use the GogoKitConfiguration to switch between the sandbox and
// production environments. See http://developer.viagogo.net/#sandbox-environment
var client = new ViagogoClient (new ProductHeaderValue("AwesomeApp", "1.0"),
                                new GogoKitConfiguration(SANDBOX_CLIENT_ID, SANDBOX_CLIENT_SECRET)
                                {
                                    ViagogoApiEnvironment = ApiEnvironment.Sandbox
                                });

Supported Platforms

  • .NET Core 2.0
  • .NET Framework 4.6.1
  • Mono 5.4
  • Xamarin.iOS 10.14
  • Xamarin.Mac 3.8
  • Xamarin.Android 7.5
  • Universal Windows Platform vNext

How to contribute

All submissions are welcome. Fork the repository, read the rest of this README file and make some changes. Once you're done with your changes send a pull request. Thanks!

Need Help? Found a bug?

Just submit a issue if you need any help. And, of course, feel free to submit pull requests with bug fixes or changes.