Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
maxab committed Dec 1, 2017
1 parent 48cf40b commit c7c6775
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions README.md
Expand Up @@ -26,9 +26,9 @@ Install-Package GogoKit
```c#
// All methods require OAuth2 authentication. To get OAuth2 credentials for your
// application, see http://developer.viagogo.net/#authentication.
var client = new ViagogoClient(CLIENT_ID,
CLIENT_SECRET,
new ProductHeaderValue("AwesomeApp", "1.0"));
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[] {});
Expand All @@ -47,10 +47,8 @@ var genres = await client.Categories.GetAllGenresAsync();
```c#
// You can use the GogoKitConfiguration to switch between the sandbox and
// production environments. See http://developer.viagogo.net/#sandbox-environment
var client = new ViagogoClient (SANDBOX_CLIENT_ID,
SANDBOX_CLIENT_SECRET,
new ProductHeaderValue("AwesomeApp", "1.0"),
new GogoKitConfiguration
var client = new ViagogoClient (new ProductHeaderValue("AwesomeApp", "1.0"),
new GogoKitConfiguration(SANDBOX_CLIENT_ID, SANDBOX_CLIENT_SECRET)
{
ViagogoApiEnvironment = ApiEnvironment.Sandbox
});
Expand Down

0 comments on commit c7c6775

Please sign in to comment.