Module: ThirdPartyWxa::Api::Server
- Included in:
- Plugin
- Defined in:
- lib/third_party_wxa/api/server.rb
Instance Method Summary collapse
-
#modify_domain(options = {}) ⇒ Object
1、设置小程序服务器域名 post api.weixin.qq.com/wxa/modify_domain?access_token=TOKEN.
-
#setwebviewdomain(options = {}) ⇒ Object
2、设置小程序业务域名(仅供第三方代小程序调用) post api.weixin.qq.com/wxa/setwebviewdomain?access_token=TOKEN.
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 ={} rest = .slice!(:action, :requestdomain, :wsrequestdomain, :uploaddomain, :downloaddomain) http_post_with_token rest, 'wxa', 'modify_domain', 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 ={} rest = .slice!(:action, :webviewdomain) http_post_with_token rest, 'wxa', 'setwebviewdomain', end |