class SocialOauthApi::Weixin::User

Public Instance Methods

headimgurl() click to toggle source
# File lib/social_oauth_api/weixin/weixin_user.rb, line 21
def headimgurl
  show['headimgurl']
end
Also aliased as: image_url
image_url()
Alias for: headimgurl
name()
Alias for: nickname
nickname() click to toggle source
# File lib/social_oauth_api/weixin/weixin_user.rb, line 17
def nickname
  show['nickname']
end
Also aliased as: name
show() click to toggle source
# File lib/social_oauth_api/weixin/weixin_user.rb, line 9
def show
  @user_info ||= JSON.parse(
    get(user_info_url,
        access_token: access_token,
        openid: openid)
  )
end
Also aliased as: user_info
user_info()
Alias for: show