The GoTo Community is currently experiencing some technical issues affecting new posts and comments. You may need to reload the page you are on before you can post a comment. We are actively working with our service provider and apologize for the frustration.
Forum Discussion
NWC_GTW_Admin
3 years agoActive Contributor
How to handle multiple accounts using GoToWebinar API
We are using GoToWebinar API to download Webinar Data.
Desktop Application developed using vb.net and using the .NET SDK (https://developer.goto.com/guides/SDKs/03_NET-SDK/) related help to connect using OAuth2Api.
We can download data from one GoToWebinar Account by getting the Access Token.
--------
clientId = "forAccount1ID"
clientSecrete = "forAccount1Pwd"
var oauth2Api = new OAuth2Api(clientId, clientSecret);
string authUrl = oauth2Api.GetOAuth2AuthorisationUrl();
....
....
--------
/* using a WinForms WebBrowser implementation */
void webBrowser_Navigated(object sender, WebBrowserNavigatedEventArgs e)
{
string responseKey = oauth2Api.GetResponseKey(e.Url); // => " ******** "
var tokenResponse = oauth2Api.GetAccessTokenResponse(responseKey);
var accessToken = tokenResponse.access_token; // => " ******** "
}
--------
We are not getting the proper token when we use different clientId for our 2nd Account.
Is there any method to revoke or terminate the earlier OAuth session ?
1 Reply
- KateG3 years agoGoTo Manager
NWC_GTW_Admin Hi! Thanks for visiting the GoTo Community. Please go to developer.goto.com and click Support on the top to request assistance. Thanks.