Table of Contents

Code Samples

Getting started with integrating a new API into an application landscape can be tricky. We therefore want to make your first steps easier by providing a small selection of code samples. These code samples are ready-to-use for their individual scenarios, while at the same time can be easily adapted to your individual needs.

→ Download code samples

The ZIP archive with the code samples contains a Visual Studio Solution that shall give you an implementation head start. The solution consists of the two projects SportsApiExample.csproj and SportsApiExample.Tests.csproj.

How to use the code samples

Unpack the archive and have a look at the files in the subfolder SportsApiExample.Tests.

Class InMemoryCacheProcessor

The class InMemoryCacheProcessor is the example that you can adapt for your own needs.

Class ExampleScenarioTests

The class ExampleScenarioTests contains the test method ExampleScenarioTests.GetNflTest.

Define the host name and your authentication information in the following lines:
public const string Host = "";
public string AccessId = @"";
public string Token = @"";