How to use / access the Gmail API from C# Windows 8

Download the code here – https://github.com/ismaelc/GmailAPI-Windows8-OAuth

This Windows 8 (C#/XAML) code demonstrates:

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

Advertisements

Example of Concur Web flow (Trover)

You can find more details about the Web flow in the Concur’s developer page here.

  1. From Concur App Center, click “Connect”
    • 1
  2. Creation of new Trover account / or login to existing account.
    • 2
  3. Custom page to link Trover and Concur
    • 3
  4. Authorization page to allow Trover to access Concur user’s information
    • 4
  5. Custom connected page
    • 5
  6. Provide user with option to disconnect
    • 6

Consuming OAuth-protected Mashape APIs

This is a sample app that demonstrates how to consume OAuth-protected Mashape APIs in Windows 8/RT.  This example uses a Twitter search endpoint in Mashape.

Although this example uses Windows 8/C#, it is based on the same steps indicated in our “Authenticate with OAuth” documentation for RESTPHPPythonRubyObjective-C, andJava/Android.

For these languages, we auto-generate the endpoint’s ready-to-use libraries for your convenience.  A huge time-saver!

We’d love to hear from you about Mashape’s OAuth support.  You can talk to us throughFacebook or email us at support@mashape.com