eggs api call implementd and tested