extensions/auth.rb in purecloud-0.18.0 vs extensions/auth.rb in purecloud-0.25.0

- old
+ new

@@ -26,14 +26,14 @@ def get_access_token_from_auth_code(auth_code, client_id, client_secret, redirect_uri, environment = nil) environment ||= "mypurecloud.com" tokenFormData = { "grant_type" => "authorization_code", - "code" => authCode, + "code" => auth_code, "redirect_uri" => redirect_uri } - tokenResponse =JSON.parse RestClient.post "https://#{@@client_id}:#{@@client_secret}@login.#{environment}/token", tokenFormData + tokenResponse =JSON.parse RestClient.post "https://#{client_id}:#{client_secret}@login.#{environment}/token", tokenFormData return tokenResponse['access_token']; end end end