Module: ThirdPartyWxa::Api::Code
- Included in:
- Plugin
- Defined in:
- lib/third_party_wxa/api/code.rb
Instance Method Summary collapse
-
#change_visitstatus(options = {}) ⇒ Object
10、修改小程序线上代码的可见状态(仅供第三方代小程序调用) api.weixin.qq.com/wxa/change_visitstatus?access_token=TOKEN.
-
#commit(options = {}) ⇒ Object
1、为授权的小程序帐号上传小程序代码 post api.weixin.qq.com/wxa/commit?access_token=TOKEN.
-
#get_auditstatus(options = {}) ⇒ Object
7、查询某个指定版本的审核状态(仅供第三方代小程序调用) post api.weixin.qq.com/wxa/get_auditstatus?access_token=TOKEN.
-
#get_category(options = {}) ⇒ Object
3、获取授权小程序帐号已设置的类目 get api.weixin.qq.com/wxa/get_category?access_token=TOKEN.
-
#get_latest_auditstatus(options) ⇒ Object
8、查询最新一次提交的审核状态(仅供第三方代小程序调用) get api.weixin.qq.com/wxa/get_latest_auditstatus?access_token=TOKEN.
-
#get_page(options = {}) ⇒ Object
4、获取小程序的第三方提交代码的页面配置(仅供第三方开发者代小程序调用) get api.weixin.qq.com/wxa/get_page?access_token=TOKEN.
-
#get_qrcode(options = {}) ⇒ Object
2、获取体验小程序的体验二维码 get api.weixin.qq.com/wxa/get_qrcode?access_token=TOKEN&path=page%2Findex%3Faction%3D1.
-
#release(options = {}) ⇒ Object
9、发布已通过审核的小程序(仅供第三方代小程序调用) post api.weixin.qq.com/wxa/release?access_token=TOKEN.
-
#revertcoderelease(options = {}) ⇒ Object
11.
-
#submit_audit(options = {}) ⇒ Object
5、将第三方提交的代码包提交审核(仅供第三方开发者代小程序调用) post api.weixin.qq.com/wxa/submit_audit?access_token=TOKEN.
Instance Method Details
#change_visitstatus(options = {}) ⇒ Object
10、修改小程序线上代码的可见状态(仅供第三方代小程序调用) api.weixin.qq.com/wxa/change_visitstatus?access_token=TOKEN
59 60 61 62 |
# File 'lib/third_party_wxa/api/code.rb', line 59 def change_visitstatus ={} rest = .slice!(:action) http_post_with_token rest, 'wxa', 'change_visitstatus', end |
#commit(options = {}) ⇒ Object
1、为授权的小程序帐号上传小程序代码 post api.weixin.qq.com/wxa/commit?access_token=TOKEN
7 8 9 10 |
# File 'lib/third_party_wxa/api/code.rb', line 7 def commit ={} rest = .slice!(:template_id, :ext_json, :user_version, :user_desc) http_post_with_token rest, 'wxa', 'commit', end |
#get_auditstatus(options = {}) ⇒ Object
7、查询某个指定版本的审核状态(仅供第三方代小程序调用) post api.weixin.qq.com/wxa/get_auditstatus?access_token=TOKEN
40 41 42 43 |
# File 'lib/third_party_wxa/api/code.rb', line 40 def get_auditstatus ={} rest = .slice!(:auditid) http_post_with_token rest, 'wxa', 'get_auditstatus', end |
#get_category(options = {}) ⇒ Object
3、获取授权小程序帐号已设置的类目 get api.weixin.qq.com/wxa/get_category?access_token=TOKEN
21 22 23 |
# File 'lib/third_party_wxa/api/code.rb', line 21 def get_category ={} http_get_with_token , 'wxa', 'get_category' end |
#get_latest_auditstatus(options) ⇒ Object
8、查询最新一次提交的审核状态(仅供第三方代小程序调用) get api.weixin.qq.com/wxa/get_latest_auditstatus?access_token=TOKEN
47 48 49 |
# File 'lib/third_party_wxa/api/code.rb', line 47 def get_latest_auditstatus http_get_with_token , 'wxa', 'get_latest_auditstatus' end |
#get_page(options = {}) ⇒ Object
4、获取小程序的第三方提交代码的页面配置(仅供第三方开发者代小程序调用) get api.weixin.qq.com/wxa/get_page?access_token=TOKEN
27 28 29 |
# File 'lib/third_party_wxa/api/code.rb', line 27 def get_page ={} http_get_with_token , 'wxa', 'get_page' end |
#get_qrcode(options = {}) ⇒ Object
14 15 16 17 |
# File 'lib/third_party_wxa/api/code.rb', line 14 def get_qrcode ={} rest = .slice!(:path) http_get_with_token rest, 'wxa', 'get_qrcode', end |
#release(options = {}) ⇒ Object
9、发布已通过审核的小程序(仅供第三方代小程序调用) post api.weixin.qq.com/wxa/release?access_token=TOKEN
53 54 55 |
# File 'lib/third_party_wxa/api/code.rb', line 53 def release ={} http_post_with_token , 'wxa', 'release', {} end |
#revertcoderelease(options = {}) ⇒ Object
-
小程序版本回退(仅供第三方代小程序调用)
get api.weixin.qq.com/wxa/revertcoderelease?access_token=TOKEN
66 67 68 |
# File 'lib/third_party_wxa/api/code.rb', line 66 def revertcoderelease ={} http_get_with_token , 'wxa', 'revertcoderelease' end |
#submit_audit(options = {}) ⇒ Object
5、将第三方提交的代码包提交审核(仅供第三方开发者代小程序调用) post api.weixin.qq.com/wxa/submit_audit?access_token=TOKEN
33 34 35 36 |
# File 'lib/third_party_wxa/api/code.rb', line 33 def submit_audit ={} rest = .slice!(:item_list, :feedback_info, :feedback_stuff) http_post_with_token rest, 'wxa', 'submit_audit', end |