###Soapi.CS - Full Parameter Parity
###Soapi.CS - Full Parameter Parity
Soapi.CS - Full Parameter Parity
[Test] public void info_param() { // /questions sofu SO.Questions // answers (optional) When "true", the answers to a question will be returned .WithAnswers (true) // body (optional) When "true", a post's body will be included in the response. .WithBody(true) // comments (optional) When "true", any comments on a post will be included in the response. .WithComments(true) // 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)) .PagesPageCount(10) // fetch multiple pages .PageCount(-1) to get all pages .ToList(); } Request that is issued: (bogus request, so no paging occurs)
// /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(); [Test] public void info_param() { // /questions SO.Questions // answers (optional) When "true", the answers to a question will be returned .WithAnswers(true) // body (optional) When "true", a post's body will be included in the response. .WithBody(true) // comments (optional) When "true", any comments on a post will be included in the response. .WithComments(true) // 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)) .PageCount(10) // fetch multiple pages .PageCount(-1) to get all pages .ToList(); } Request that is issued: (bogus request, so no paging occurs)
###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(); default