Software Development Kits for .NET

Overview

The GoTo product SDKs for .NET are Software Development Kits for the GoTo product REST APIs exposing the API calls as C# methods. They are available in source and binary formats and provide you with an easy and fast way to integrate your .NET applications with the GoTo products. Currently we provide the following SDKs:

To use the binaries extract the respective binary archive and reference both contained DLLs from your own project.

To use the source code extract the respective source archive. The source code is distributed as a Visual Studio project which you can add to your solution (version 2010 or greater required). Once opened, please enable package restore during build by checking the box "Allow NuGet to download missing packages during build" under Tools -> Options -> NuGet Package Manager -> General, then build once so the dependency is downloaded.

Getting started

The following tips assume that you already have

a GoTo product account

a GoTo developer account

a consumer key for the respective GoTo product. You obtain this key after creating an app in your developer account.

To integrate the GoTo product into your application you need to install the homonymous SDK as well as the core library for authentication. For example, to develop for GoToWebinar, you need to install GoToWebinar.NET and GoToCoreLib.NET.

Before you make any calls you need to authenticate and obtain an access token. We support two different ways of authentication:

OAuth Flow

The first step is to generate the authorization URL where the user's browser will be directed. For this you'll need your app's consumer key and optionally the URL where the user will be redirected after the authorization to use your application:

Then you need to direct your user's browser to this authorization URL. The user will now login with their GoTo product account credentials and click "Approve" to allow your application access to their product data. After approval, the user will be redirected and you need to capture this redirection URL in order to extract from it the OAuth flow response key. You will use the latter to obtain your access token, for example:

Token Refresh

When you get an access token, the response also includes a refresh token. At the end of your access token's lifetime, you can send the refresh token in a call to obtain a new access token and refresh token pair: