How Select Inbox Mail with API

Hi, I am ussing Delphi and i need Get the Emails of the Inbox, But i dont have any Documentation or samples. if you have some lines to me.Regards Santiago.