Skip to content

Instantly share code, notes, and snippets.

@MrBretticus
Created January 25, 2012 08:29
Show Gist options
  • Save MrBretticus/1675441 to your computer and use it in GitHub Desktop.
Save MrBretticus/1675441 to your computer and use it in GitHub Desktop.
C# example of using the Restfulie .NET client
// NOTE: ripped from https://github.com/caelum/restfulie/wiki/csharp_short_samples
//retrieves the resource through GET: the entry point
dynamic order = Restfulie.At(resourceURI).Get();
Console.WriteLine("the order price is " + order.Price);
Console.WriteLine("The order product is" + order.Product);
// Executing a state transition:
order.Pay();
// sends a delete request
order.Cancel()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment