Module: ThirdPartyWxa::Api::Template

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

Instance Method Summary collapse

Instance Method Details

#add_to_template(draft_id) ⇒ Object

将草稿箱的草稿选为小程序代码模版



17
18
19
# File 'lib/third_party_wxa/api/template.rb', line 17

def add_to_template(draft_id)
	http_post 'wxa', 'addtotemplate', {draft_id: draft_id}
end

#delete_template(template_id) ⇒ Object

删除指定小程序代码模版



22
23
24
# File 'lib/third_party_wxa/api/template.rb', line 22

def delete_template(template_id)
	http_post 'wxa', 'deletetemplate', {template_id: template_id}
end

#get_template_draft_listObject

获取草稿箱内的所有临时代码草稿



12
13
14
# File 'lib/third_party_wxa/api/template.rb', line 12

def get_template_draft_list
	http_get 'wxa', 'gettemplatedraftlist'
end

#get_template_listObject

获取代码模版库中的所有小程序代码模版 api.weixin.qq.com/wxa/gettemplatelist?access_token=TOKEN



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

def get_template_list
   	http_get 'wxa', 'gettemplatelist'
end