module WechatClient::Apis::Getting

Public Instance Methods

__access_token__() click to toggle source
# File lib/wechat_client/apis/getting.rb, line 15
def __access_token__
  # for debug
  "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=#{@options.app_id}&secret=#{@options.app_secret}"
end
__jsapi_ticket__() click to toggle source
# File lib/wechat_client/apis/getting.rb, line 68
def __jsapi_ticket__
  "https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token=#{_access_token_}&type=jsapi"
end
access_token() click to toggle source
# File lib/wechat_client/apis/getting.rb, line 11
def access_token
  "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=#{@options.app_id}&secret=#{@options.app_secret}"
end
auth_access_token() click to toggle source

用户管理

# File lib/wechat_client/apis/getting.rb, line 30
def auth_access_token
  "https://api.weixin.qq.com/sns/oauth2/access_token?appid=#{@options.app_id}&secret=#{@options.app_secret}&grant_type=authorization_code&"
end
auth_access_token_validation() click to toggle source
# File lib/wechat_client/apis/getting.rb, line 42
def auth_access_token_validation
  "https://api.weixin.qq.com/sns/auth?"
end
auth_info() click to toggle source
# File lib/wechat_client/apis/getting.rb, line 38
def auth_info
  "https://api.weixin.qq.com/sns/userinfo?lang=zh_CN&"
end
base_info() click to toggle source
# File lib/wechat_client/apis/getting.rb, line 34
def base_info
  "https://api.weixin.qq.com/cgi-bin/user/info?access_token=#{_access_token_}&lang=zh_CN&"
end
delete_menus() click to toggle source
# File lib/wechat_client/apis/getting.rb, line 56
def delete_menus
  "https://api.weixin.qq.com/cgi-bin/menu/delete?access_token=#{_access_token_}"
end
jsapi_ticket() click to toggle source

jsapi

# File lib/wechat_client/apis/getting.rb, line 64
def jsapi_ticket
  "https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token=#{_access_token_}&type=jsapi"
end
menus() click to toggle source

菜单管理

refresh_auth_access_token() click to toggle source
# File lib/wechat_client/apis/getting.rb, line 46
def refresh_auth_access_token
  "https://api.weixin.qq.com/sns/oauth2/refresh_token?appid=#{@options.app_id}&grant_type=refresh_token&"
end
send_message() click to toggle source

发送消息

# File lib/wechat_client/apis/getting.rb, line 22
def send_message
  "https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=#{_access_token_}"
end
server_ip() click to toggle source

获取接口调用凭据

# File lib/wechat_client/apis/getting.rb, line 7
def server_ip
  "https://api.weixin.qq.com/cgi-bin/getcallbackip?access_token=#{_access_token_}"
end