A viagogo API client library for .NET
C# F# Other
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
samples
src/GogoKit
tests/GogoKit.Tests
tools/nuget
.gitattributes
.gitignore
GogoKit.nuspec
GogoKit.sln
GogoKit.sublime-project
LICENSE.txt
README.md Update README.md Dec 1, 2017
ReleaseNotes.md
SolutionInfo.cs
appveyor.yml
build.cmd Upgrade to FAKE 4.9.3 Nov 20, 2015
build.fsx
build.sh

README.md

GogoKit - viagogo API Client Library for .NET

NuGet version Build status

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 4.5 (Desktop / Server)
  • Windows 8 / 8.1 Store Apps
  • Windows Phone 8 / 8.1
  • Xamarin.iOS / Xamarin.Android / Xamarin.Mac
  • Mono 3.x

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.