Class: OmniAuth::Dingtalk::Client::ThirdPartyPersonal
- Defined in:
- lib/omniauth-dingtalk/client/third_party_personal.rb
Constant Summary collapse
- TOKEN_URL =
'/sns/gettoken'
Constants inherited from Base
Base::AUTHORIZE_URL, Base::GET_USER_ID_BY_UNIONID_URL, Base::GET_USER_INFO_BY_CODE_URL, Base::GET_USER_INFO_BY_ID_URL
Instance Method Summary collapse
Methods inherited from Base
#get_token, #get_user_id_by_unionid, #get_user_info_by_code, #get_user_info_by_id, #initialize, #token_params, #token_url
Constructor Details
This class inherits a constructor from OmniAuth::Dingtalk::Client::Base
Instance Method Details
#get_user_info(params = {}) ⇒ Object
11 12 13 14 |
# File 'lib/omniauth-dingtalk/client/third_party_personal.rb', line 11 def get_user_info(params = {}) resp = get_user_info_by_code(params[:code]) resp['user_info'] || {} end |