Added the API to get goals based on user and date.