As I learned from George Edison in his comment, the server handles time in UTC format. Just replace your calls to DateTime.Now with DateTime.UtcNow or you can convert any DateTime to UTC format with the ToUniversalTime method. Just make sure not to call ToUniversalTime on the server's time, or it'll get messed up.
With the way the API is currently set up (lots of caching the info page says) is it possible to update the information on a question you've already looked at? I have a list of questions but, as time goes on, the information changes (# of answers, votes, etc) and I would like to be able to update the questions with the new info.
I forgot to add the scope in the authentication url according to this document
1.Send a user to https://stackexchange.com/oauth, with these query string parameters
◦redirect_uri - must be under an apps registered domain
◦state - optional
You're treating the response as a UTF-8 encoded string. That's bound to fail with binary data like GZip. A quick fix is to use Encoding.GetEncoding("iso-8859-1") instead of UTF8 in StringToByteArray, and also pass this encoding to the StreamReader constructor in FetchURL.
That encoding maps bytes to codepoints one-to-one; see this answer on Stack Overflow.
I am aware that the last activity in this thread was more than four years ago, but since it still shows up in Google searches, I would like to point out some errors in the conversion.
I have no comments to the JSON.net related part of the converter, since that is what I searched for. But the conversion from and to UNIX timestamps is wrong.
A UNIX timestamp ...
In the StackyClient.GetQuestions function, for the tags parameter, will you get questions with any of the tags in the array, or questions that have all of the tags in the array?
Also I don't see really any documentation except for the page with a few examples, which don't explain what exactly the parameters do and stuff. If anyone could link me to a ...
Event Logging, Caching and Throttling
I've just finished implementing these features.
Event Logging is a new feature that allows us to debug different methods on the bridge by hooking the events at client.EventLog, and examining the messages logged there.
Caching was already present on the previous version of the bridge, but it now supports multi-...
As Brock Adams stated in his answer, you can't do this via the StacMan library.
Might I suggest an alternative?
You should be able to add new questions via the SEStandard library at SEStandard - A .NET Standard 1.1 compliant Stack Exchange client library that supports API v2.2.
using Scopes = ...
Sorry about that. Turns out, return URLs were broken on stackexchange.com entirely during signup and login. A fix is out now, so any API app auth redirect issues should also be resolved with it.
Please let me know if you see any other problems. Thanks for the report, and my apologies for the delay in fixing the issue.
You have to create a post describing your application, and edit it into your application's registration.
Basically, the first arrow needs a value; and you can set it when you edit (with the second arrow). Click "Manage your applications" in the homepage sidebar of Stack Apps to get to your application list.
We require this so that:
we always have a ...
In a nutshell and don't know ask me how to write this in C#:
That first "500 error" page is normal. You must display that to the user and the user must approve.
When the user approves, the page will redirect to a page (nominally stackexchange.com/oauth/login_success) with the access_token in the URL parameters. For example:
I don't know why but I am not able to install that package. I'll get this error:
PM> Install-Package StacMan
"StacMan 126.96.36.199" wurde erfolgreich installiert.
"StacMan 188.8.131.52" wurde erfolgreich deinstalliert.
Installationsfehler. Rollback wird ausgeführt...
Install-Package : Das Paket "StacMan 184.108.40.206" konnte nicht installiert werden. Sie versuchen, ...
I'm using C# for the first time.
When I compile the StacMan source under the v3.5 framework I get this error:
Error 2 Default parameter specifiers are not permitted StacManClient.SuggestedEditMethods.cs
From what I have read, it seems that this error occurs when not using the .NET framework v4 for compiling.
Not working on Windows (8x64)
Firstly, it doesn't not install in C:\Program Files (x86)\StackWatcher but the executable is found in C:\Users\<user>\AppData\Roaming\StackWatcher.exe
Then I wasn't able to set the the user up as it couldn't get the site list
I guess it's suffering from the same sort of error StackApplet is
The active questions queue shows posts that have been edited. I like to watch that. But I can't get a List of Answers sorted by activity, only Questions. I am looking for something like this
var o = new PostOptions();
o.SortBy = Sort.Activity;
o.SortDirection = SortDirection.Descending;
o.FromDate = DateTime....