Skip to content

Instantly share code, notes, and snippets.

@jhollingworth
Created January 19, 2011 00:22
Show Gist options
  • Select an option

  • Save jhollingworth/785440 to your computer and use it in GitHub Desktop.

Select an option

Save jhollingworth/785440 to your computer and use it in GitHub Desktop.
var client = new RestClient();
client.BaseUrl = "http://api.developerdame.com";
var request = new RestRequest();
request.Resource = "customers";
var customers = client.Execute(request).Deserialze<List<Customer>>();
request = new RestRequest();
request.Resource = "customers/james";
var james = client.Execute(request).Deserialze<Customer>();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment