Method: Baidu::OAuth::RESTClient#app_user?
- Defined in:
- lib/baidu/oauth/rest_client.rb
#app_user?(options = {}) ⇒ Boolean
判定当前用户是否已经为应用授权
112 113 114 115 |
# File 'lib/baidu/oauth/rest_client.rb', line 112 def app_user?(={}) rest = api_request '/passport/users/isAppUser', rest[:result] == '1' end |