Add advanced get function; get by status

0: pending, 1: accepted