Hello,
Not sure why I could not use my other G2W login to access these forums, but whatever...
I am attempting to use the GoToWebinar API to retrieve upcoming webinars.
I had written some code a few months ago to do this, now it seems it is not working.
Whenever I try to obtain an Authorization Code to use with the API, I am getting this error:
The remote name could not be resolved: 'fhbjgbiflinjbdggehcddcbncdddomop.chromiumapp.org'
I am using C# with the RestSharp to make the request, here is a sample of the code
private readonly string base_url = "https://api.getgo.com";
private readonly string login_url = "https://authentication.logmeininc.com";
private readonly string email_address = <removed>
private readonly string password = <removed>
private readonly string client_id = <removed>
private string GetAuthCode()
{
RestClient client = new RestClient(string.Format("{0}/login", login_url));
client.Timeout = -1;
RestRequest request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/x-www-form-urlencoded");
request.AddParameter("emailAddress", email_address);
request.AddParameter("password", password);
string svc = string.Format("{0}/oauth/approve?client_id={1}&response_type=code", login_url, client_id);
request.AddQueryParameter("service", svc);
IRestResponse response = client.Execute(request);
string code = string.Empty;
if (response.StatusCode == HttpStatusCode.OK && !string.IsNullOrEmpty(response.ResponseUri.Query))
{
MatchCollection matches = new Regex("\\?code=([\\w|.|-]+)").Matches(response.ResponseUri.Query);
if (matches.Count == 1 && matches[0].Groups.Count == 2)
{
code = matches[0].Groups[1].Value;
}
}
else
{
throw new Exception(response.ErrorMessage);
}
return code;
}
What am I doing wrong here? Did the URL change ?