Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ddd3c74

Browse files
author
Hariharan Subramanian
committed
Updated docs
1 parent f0bbf40 commit ddd3c74

File tree

2 files changed

+36
-6
lines changed

2 files changed

+36
-6
lines changed

‎README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,24 @@
1515
Created by Hari Haran
1616
- [StackExchange.NET](#stackexchangenet)
1717
- [Overview](#overview)
18+
- [Installation](#installation)
1819
- [Contributors](#contributors)
1920
- [Usage](#usage)
2021
- [Parameter Filters](#parameter-filters)
22+
- [Contributing](#contributing)
2123
- [ChangeLogs](#changelogs)
22-
24+
2325
## Overview
2426
StackExchange.NET is a .NET Standard managed library that provides easy access to the StackExchange APi's with virtually no boilerplate code required.
2527

2628
Currently the library supports 18 Endpoints ( As on 11:09:2019) listed in the [API Docs](https://api.stackexchange.com/docs). I will be covering all the other endpoints as well, except those that require Auth.
2729

2830
StackExchange.NET is FOSS (MIT License) and written entirely in c#.
2931

32+
## Installation
33+
34+
Use a NuGet package reference inside your project with the name [`StackExchange.NET`](https://www.nuget.org/packages/StackExchange.NET/) Alternatively, binaries can be pulled from the build server linked above under artifacts or compiled manually from the build folder.
35+
3036
## Contributors
3137

3238
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
@@ -70,6 +76,10 @@ There are different types of parameter filter objects available. Each `Parent Me
7076
- CommentFilter
7177
- PostFilter
7278

79+
## Contributing
80+
81+
If you're looking to contribute, thanks for your interest. Feel free to submit reports for any issues you can find, or request potential features you'd like to see [here](https://github.com/gethari/StackExchange.NET/issues).
82+
7383
## ChangeLogs
7484
## Verison 1.1
7585
- Improved overall code quality using Fluent API Url Builders

‎Sample/ConsoleApp/Program.cs

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Program
1010
{
1111
static void Main(string[] args)
1212
{
13-
var client = new StackExchangeClient("yourApiKey");
13+
var client = new StackExchangeClient("U4DMV*8nvpm3EOpvf69Rxw((");
1414
var queryString = new AnswerFilters()
1515
{
1616
PageSize = 1,
@@ -77,12 +77,32 @@ static void Main(string[] args)
7777

7878
// var revisionByIds = client.Posts.GetRevisionsByIds(postIds, postFilter);
7979

80-
var suggestedEdits = client.Posts.GetSuggestedEdits(postIds, new SuggestedEditFilter()
80+
//var suggestedEdits = client.Posts.GetSuggestedEdits(postIds, new SuggestedEditFilter()
81+
//{
82+
// Sort = PostSort.Creation
83+
//});
84+
85+
//Console.WriteLine(JsonConvert.SerializeObject(suggestedEdits));
86+
87+
var questionFilter = new QuestionFilters()
8188
{
82-
Sort = PostSort.Creation
83-
});
89+
Sort = Sort.Activity
90+
};
8491

85-
Console.WriteLine(JsonConvert.SerializeObject(suggestedEdits));
92+
var qIds = new List<string>()
93+
{
94+
"58054349", "58038242"
95+
};
96+
97+
//var result = client.Questions.GetAllQuestions(questionFilter);
98+
//var result = client.Questions.GetQuestionsByIds(qIds,questionFilter);
99+
//var result = client.Questions.GetAnswersByQuestionIds(qIds,questionFilter);
100+
//var result = client.Questions.GetCommentsByQuestionIds(qIds,questionFilter);
101+
//var linked = client.Questions.GetLinkedQuestions(qIds, questionFilter);
102+
//var related = client.Questions.GetRelatedQuestions(qIds, questionFilter);
103+
//var getFeaturedQuestions = client.Questions.GetFeaturedQuestions(questionFilter);
104+
//var getQuestionsWithNoAnswers = client.Questions.GetQuestionsWithNoAnswers(questionFilter);
105+
//var getUnansweredQuestions = client.Questions.GetUnansweredQuestions(questionFilter);
86106
Console.ReadKey();
87107
}
88108
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /