Method: DocuSign_Maestro::ApiClient#get_user_info
- Defined in:
- lib/docusign_maestro/client/api_client.rb
permalink #get_user_info(access_token) ⇒ OAuth::UserInfo
Get User Info method takes the accessToken to retrieve User Account Data.
549 550 551 552 553 554 555 556 557 558 559 |
# File 'lib/docusign_maestro/client/api_client.rb', line 549 def get_user_info(access_token) raise ArgumentError.new('Cannot find a valid access token. Cannot find a valid access token.') if access_token.empty? params = { :header_params => {"Authorization" => 'Bearer ' + access_token}, :return_type => 'OAuth::UserInfo', :oauth => true } data, status_code, headers = self.call_api("GET", '/oauth/userinfo', params) data end |