Method: Vonage::NetworkAuthentication::ServerAuthentication#token
- Defined in:
- lib/vonage/network_authentication/server_authentication.rb
#token(purpose:, api_scope:, login_hint:, **params) ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/vonage/network_authentication/server_authentication.rb', line 14 def token(purpose:, api_scope:, login_hint:, **params) auth_req_id = ( purpose: purpose, api_scope: api_scope, login_hint: login_hint ).auth_req_id request_access_token(auth_req_id: auth_req_id).access_token end |