Sha256: 1f50a50800750e5ea004e71337164c2892a3ee15c341b78391a2f52ba96c249a
Contents?: true
Size: 832 Bytes
Versions: 1
Compression:
Stored size: 832 Bytes
Contents
require 'jsonclient' class Wechat::ShakeAround::Shaking extend ::Wechat::ShakeAround::Common # 获取摇周边的设备及用户信息 # http://mp.weixin.qq.com/wiki/3/34904a5db3d0ec7bb5306335b8da1faf.html # # Return hash format if success: # { # data: # { # page_id: <PAGE_ID>, # openid: <OPEN_ID>, # poi_id: <POI_ID>, # beacon_info: # { # distance: <DISTANCE>, # uuid: <UUID>, # major: <MAJOR>, # minor: <MINOR> # } # }, # errcode: 0, # errmsg: 'success.' # } def self.load(access_token, ticket) message = ::JSONClient.new.post "https://api.weixin.qq.com/shakearound/user/getshakeinfo?access_token=#{access_token}", { ticket: ticket, need_poi: 1 } message.body end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wechat-shake_around-0.9 | lib/wechat/shake_around/shaking.rb |