Hot answers tagged

4

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.


3

I forgot to add the scope in the authentication url according to this document https://api.stackexchange.com/docs/authentication#scope 1.Send a user to https://stackexchange.com/oauth, with these query string parameters ◦client_id ◦scope (details) ◦redirect_uri - must be under an apps registered domain ◦state - optional


3

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. ...


2

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-...


2

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 ...


1

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 System.Threading.Tasks; using RavinduL.SEStandard; using Scopes = ...


1

I had to change the structure of Authentication on my App. For windows 10, I use AuthenticationBroker but for Windows 10 Phone I used the old WebView Model and completed login implementation.


1

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.


1

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 ...


1

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: https://stackexchange.com/...


1

string post_data = "client_id={0}&client_secret={1}&code={2}&redirect_uri={3}"; post_data = string.Format(post_data, code, clientId, redirect_url, apiSecret); Shouldn't that be string post_data = "client_id={0}&client_secret={1}&code={2}&redirect_uri={3}"; post_data = string.Format(post_data, clientId, apiSecret, code, redirect_url);...


1

I don't know why but I am not able to install that package. I'll get this error: PM> Install-Package StacMan "StacMan 1.0.1.0" wurde erfolgreich installiert. "StacMan 1.0.1.0" wurde erfolgreich deinstalliert. Installationsfehler. Rollback wird ausgeführt... Install-Package : Das Paket "StacMan 1.0.1.0" konnte nicht installiert werden. Sie versuchen, ...


1

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. Any suggestions?


1

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


1

Feature Request 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....


Only top voted, non community-wiki answers of a minimum length are eligible