for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from wechatpy.client.api.base import BaseWeChatAPI
class MerchantCategory(BaseWeChatAPI):
def get_sub_categories(self, cate_id):
res = self._post(
'merchant/category/getsub',
data={'cate_id': cate_id},
result_processor=lambda x: x['cate_list']
)
return res
def get_sku_list(self, cate_id):
'merchant/category/getsku',
result_processor=lambda x: x['sku_table']
def get_properties(self, cate_id):
'merchant/category/getproperty',
result_processor=lambda x: x['properties']