Skip to content

Instantly share code, notes, and snippets.

View CiprianPorumbescu's full-sized avatar

CiprianPorumbescu

View GitHub Profile
@CiprianPorumbescu
CiprianPorumbescu / NylasAuthResponse.cs
Last active August 29, 2015 14:28
An example of how to authorize Nylas from .Net
public async Task<ActionResult> NylasAuthenticationResult(string code)
{
using (HttpClient httpClient = new HttpClient())
{
httpClient.BaseAddress = new Uri("https://api.nylas.com");
//tried as JSON
var nylasAuthorizeRequest = new NylasAuthorizeRequest
{
ClientId = "cf7jhxlkkvimkxvd2vnkkzci",