add api to get category
Merge pull request #43 from yglin/api_get_category

add api to get category