How to get all inbox and outbox emails using C#, I am newbie here , please give some direction with sudo code.

How to get all inbox and outbox emails using C#, I am newbie here , please give some direction with sudo code.

I need to show all email sent by my account and all received email too. i was thinking to call first : https://accounts.zoho.com/oauth/v2/token and then call email api but not sure, Can some one help me with sudo code would be great.

Thanks