Got categories api working.