Skip to main content
1 of 3
Sky Sanders
  • 12.1k
  • 3
  • 32
  • 60

###Soapi.CS - Full Parameter Parity

Soapi provides full API coverage including parameters.

// /questions
sofu.Questions
    
    // answers (optional)   When "true", the answers to a question will be returned
    .WithAnswers 
    // body (optional)      When "true", a post's body will be included in the response.
    .WithBody
    // comments (optional)  When "true", any comments on a post will be included in the response.
    .WithComments
    // fromdate (optional)  Unix timestamp of the minimum creation date on a returned item.
    .FromDate("january 1, 2001") // can parse dates
    // max (optional)       Maximum of the range to include in the response according to the current sort.
    .Max(2)
    // min (optional)       Minimum of the range to include in the response according to the current sort.
    .Min(1)
    // order (optional)     How the current sort should be ordered.
    .Order(SortOrder.Asc)
    // page (optional)      The pagination offset for the current collection. Affected by the specified pagesize.
    .Page(1)
    // pagesize (optional)  The number of collection results to display during pagination. Should be between 1 and 100 inclusive.
    .PageSize(100)
    // sort (optional)      How a collection should be sorted.
    .Sort(QuestionSort.Votes)
    // tagged (optional)    Semicolon delimited list of tags questions must have
    .Tagged("a", "b") // accepts param aary
    // todate (optional)    Unix timestamp of the maximum creation date on a returned item.
    .ToDate(new DateTime(2020, 1, 1)) 
    
    .Pages(10) // fetch multiple pages
    .ToList();
Sky Sanders
  • 12.1k
  • 3
  • 32
  • 60