This method will return the full list of categories for a given client. By default, it returns all categories which are not assigned to a category group. If the Category Group ID is set, only categories which belong to that group will be returned. If the Return All Categories flag is set to true, all existing categories will be returned regardless of whether they belong to a group or not.
Return Value: RestCategory