Method: HealthGraph::Authentication#access_token

Defined in:
lib/health_graph/authentication.rb

#access_token(code) ⇒ Object



7
8
9
# File 'lib/health_graph/authentication.rb', line 7

def access_token(code)
  client.auth_code.get_token(code, :redirect_uri => authorization_redirect_url).token
end