Created
January 25, 2012 08:29
-
-
Save MrBretticus/1675441 to your computer and use it in GitHub Desktop.
C# example of using the Restfulie .NET client
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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