C# sample of the REST API