Getting an access token for the Gmail API using OAuth 2.0
Calling Gmail API (Get messages IDs)
Using the code:
This C#/XAML sample code is a modified version of another LinkedIn OAuth sample code. It’s re-targeted for Windows 8.1 using Microsoft Visual Studio Express 2013 for Windows.
To use this code, you need to set up your Gmail API credentials from the Google Developer Console. Check out these instructions on how to set up your account, and get your Client ID and Client Secret keys – https://github.com/ismaelc/GmailAPI-Windows8-OAuth
*UPDATE – You can check the video tutorial of this post here*
If you’re looking for API ingredients for your Windows 8 applications, go check out Mashape. They are an API Marketplace for your apps. Instead of Googling/Binging your way to find new APIs, Mashape consolidates them for you, ready to be consumed. No lengthy documentation whatsoever. (Well, we still have to pay attention to documentation sometimes). At this point they have 1100+ APIs listed there. That’s good news for you, especially if you’re in a rush to win a hackathon or something 🙂