Module: ThirdPartyWxa::Api::Server

Included in:
Plugin
Defined in:
lib/third_party_wxa/api/server.rb

Instance Method Summary collapse

Instance Method Details

#modify_domain(options = {}) ⇒ Object

1、设置小程序服务器域名 post api.weixin.qq.com/wxa/modify_domain?access_token=TOKEN



7
8
9
10
# File 'lib/third_party_wxa/api/server.rb', line 7

def modify_domain options={}
	rest = options.slice!(:action, :requestdomain, :wsrequestdomain, :uploaddomain, :downloaddomain)
	http_post_with_token rest, 'wxa', 'modify_domain', options
end

#setwebviewdomain(options = {}) ⇒ Object

2、设置小程序业务域名(仅供第三方代小程序调用) post api.weixin.qq.com/wxa/setwebviewdomain?access_token=TOKEN



14
15
16
17
# File 'lib/third_party_wxa/api/server.rb', line 14

def setwebviewdomain options={}
	rest = options.slice!(:action, :webviewdomain)
	http_post_with_token rest, 'wxa', 'setwebviewdomain', options
end