api function that gets favourite courses for a suer needed