Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
1 of 4
Sky Sanders
  • 12.1k
  • 3
  • 33
  • 60

##Soapi.CS Fluent API note: the code samples I am posting refer to Soapi.CS, http://soapi.codeplex.com, which is the evolved version of Salient.StackApps. The question will be updated when I have completed the documentation here.

public void FluentAPI() { // Soapi.CS provides a 'fluent' api in the interest of compact code. StatsResponse response = new RouteFactory("api.stackoverflow.com", ApiKey).Stats().GetResponse(); string siteName = response.Statistics[0].DisplayName; int totalQuestions = response.Statistics[0].TotalQuestions; float questionsPerMinute = response.Statistics[0].QuestionsPerMinute; } 
Sky Sanders
  • 12.1k
  • 3
  • 33
  • 60