Skip to content

Instantly share code, notes, and snippets.

View nicolaspierre1990's full-sized avatar

Nicolas Pierre nicolaspierre1990

View GitHub Profile
@nicolaspierre1990
nicolaspierre1990 / ApiClient.cs
Created October 20, 2015 14:23 — forked from craigrbruce/ApiClient.cs
An example REST API client for C#
/*
Call the api client like this:
var client = new ApiClient<SEnvelope>("https://baseurl.com/api/v1");
//you would overload and add an auth_token param here
client.GetDtoAsync("envelopes", "object_id", (response) => //callback
{
this.SEnvelope = response.Data;//should be an envelope from the server
});