Module: ThirdPartyWxa::Api::Code

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

Instance Method Summary collapse

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 options={}
	rest = options.slice!(:action)
	http_post_with_token rest, 'wxa', 'change_visitstatus', options
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 options={}
	rest = options.slice!(:template_id, :ext_json, :user_version, :user_desc)
	http_post_with_token rest, 'wxa', 'commit', options
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 options={}
	rest = options.slice!(:auditid)
	http_post_with_token rest, 'wxa', 'get_auditstatus', options
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 options={}
	http_get_with_token options, '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 options
	http_get_with_token options, '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 options={}
	http_get_with_token options, '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 options={}
	rest = options.slice!(:path)
	http_get_with_token rest, 'wxa', 'get_qrcode', options
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 options={}
	http_post_with_token options, 'wxa', 'release', {}
end

#revertcoderelease(options = {}) ⇒ Object

  1. 小程序版本回退(仅供第三方代小程序调用)

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 options={}
	http_get_with_token options, '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 options={}
	rest = options.slice!(:item_list, :feedback_info, :feedback_stuff)
	http_post_with_token rest, 'wxa', 'submit_audit', options
end