diff --git a/Samples/6.WebAPI/Program.cs b/Samples/6.WebAPI/Program.cs index 3f0c46738..df01c03d6 100644 --- a/Samples/6.WebAPI/Program.cs +++ b/Samples/6.WebAPI/Program.cs @@ -92,10 +92,15 @@ static void Main( string[] args ) // you can call interface functions through a Call method using ( WebAPI.Interface steamNews = WebAPI.GetInterface( "ISteamNews" ) ) { - Dictionary newsArgs = new Dictionary(); + Dictionary newsArgs = new Dictionary(); newsArgs[ "appid" ] = "440"; KeyValue results = steamNews.Call( "GetNewsForApp", /* version */ 1, newsArgs ); + + foreach ( KeyValue news in results[ "newsitems" ][ "newsitem" ].Children ) + { + Console.WriteLine( "News: {0}", news[ "title" ].AsString() ); + } } } }