title: How to get access token for GoToWebinar using Classic ASP and Strict OAuth 2.0
body: <p>We are currently using GoToWebinars API to create webinars and registrants via the legacy OAuth method.</p>
  
  <p>We are late in the game to change over to Strict OAuth 2.0 and need some guidance on how to quickly change over to the new method.</p>
  
  <p>We have a web application written in classic ASP which requests the access token and then creates webinars and registrants.</p>
  
  <p>Can you provide some code examples on how we can move to Strict OAuth 2.0?</p>
  
  <p>Here is an example of our current ASP code to create tokens using the legacy method:</p>
  
  <pre><code> Function getAccessToken()
     postURL = "https://api.getgo.com/oauth/access_token?grant_type=password&amp;user_id={userId}&amp;password={password}&amp;client_id=" &amp; client_id
  
     Set ServerXmlHttp = Server.CreateObject("MSXML2.ServerXMLHTTP.6.0")
     ServerXmlHttp.open "POST", postURL
     ServerXmlHttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
     ServerXmlHttp.setRequestHeader "Content-Length", Len(PostData)
     ServerXmlHttp.send PostData
  
     jsonResponse = ServerXmlHttp.responseText
  
     'Get Access Token
     set myJson = JSON.parse(jsonResponse)
     access_token = myJson.access_token
  
     getAccessToken = access_token
  
     Set ServerXmlHttp = Nothing
  End Function
  </code></pre>
  
  <p>I have limited knowledge around strict OAuth 2.0 and can't get my head around creating access tokens programmatically.</p>