Tag Info

Hot answers tagged

10

Just wanted to let everybody know that I just made a new release of the library here. This release includes tons of bug fixes as well as some breaking changes which shouldn't be a problem if you have been running off the trunk. Also, by popular demand, I added a .Net 3.5 version of the library to this release. The hope here is to eventually have a mono ...


10

When questions get downvoted I want to see a tie-fighter scream in and hit the question with the appropriate number of laser bolts. The question should display the appropriate amount of distress as related to the number of downvotes. When a question is closed it should explode in a blaze of glory. That would get some face time from me!


4

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.


4

This post contains all the information necessary to place your application here. If you check suggested template, you'll find a dedicated section for license information. You don't need to do anything else regarding license, except specifying it.


3

Design Conversation: in reverse chronological order. part the Third: in which code poet waxes v1. After the unexpected divine intervention of Brian, the developer of Growl for Windows, I was able to refactor the evolving custom pin-able update-able displays into much slimmer and much less complex code. The updates are now batched by the server, ...


3

Asynchronous Requests Async requests can be made using the Site's RouteFactory. A salient use case for this functionality is using Soapi in Silverlight. [TestMethod, Asynchronous] public void AnswersByIdTestValid() { // The thing to be aware of is that the IEnumerable, lazyloading // model is synchronous, and since we are on the UI thread here ...


3

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

Soapi.CS Fluent Configuration var ctx = new ApiContext(ApiKey).Options // obviates a call to stackauth .SerializedSites("{ 'api_sites': [ {'name': 'Stack....") // can also be accomplished by seeding the cache .SeedCache(new RequestCacheItem { Uri = new Uri("http://stackauth.com/1.0/sites"), ResponseText = "{ ...


2

MakerOfThings7: Why is SOAPICS GPL? That really limits it's usage. Can you change it to LGPL? http://soapics.codeplex.com/license My application is proprietary, and the GPL license requires that I distribute source of my app if I simply link to this library. That's a no-go for me. code poet: There are many reasons that this, and other libraries, are ...


2

Soapi.CS - Full Parameter Parity Soapi provides full API coverage including parameters. [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 ...


2

Bulk Data Import This is a simple example of using Soapi.CS for bulk data importation. This sample creates/updates a SQLite database with the the complete profile of all Stack Exchange users with reputation >= 100 and assigns a rank according to order of appearance. Soapi processes the ~1000 requests required in less than 5 minutes. You may run this ...


2

Building a simple app with Soapi.CS Suppose you would like to build a complete dataset containing all of your content and activity for all of your accounts on all Stack Exchange sites. You would need to: Get a list of your accounts from stackauth /users/{id}/associated For each account Get all of your questions Get all of your answers Get all of your ...


2

Soapi.CS Full API Coverage // instantiate a context ApiContext ctx = new ApiContext("qgAq_KfDu0KYzlNG-qaTuw"); ctx.Initialize().AsyncWaitHandle.WaitOne(); // get a site Site sofu = ctx.Official.StackOverflow; // or Site stackapps = ctx.Sites.First(s=>s.ApiEndpoint == "http://api.stackapps.com"); --- // StackAuth Routes // /sites ...


2

Soapi Caching and Throttling Throttle All API requests made by Soapi are routed first through Soapi.Net.RequestCache and failing a cache hit, they are then routed through Soapi.Net.RequestThrottle. The throttle, which is described in detail here, works on a sliding window, allowing maximum request rate up to the prescribed limits, currently 30 per 5 ...


2

Soapi.CS Paged Results Pay particular attention to the third example; thats all 2800+ stack apps users in less than 5 seconds without breaking any rules. not too shabby. // Soapi elegantly handles multi-page requests. // Multi-paged requests are issued in parallel making data retrieval quick // get the default, 1 page of 30 using default sort var ...


2

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


1

Source Code: The primary purpose of Soapi.FindUser is to serve as a simple sample application for the Soapi.CS library. In this spirit, the complete source code for the application is provided here: // // Project: SOAPI // http://soapics.codeplex.com // http://stackapps.com/questions/386 // // Copyright 2010, Sky Sanders // Licensed under the ...


1

I tried it out on Windows 7 running the latest version of Growl for Windows, and I had no problems: My only request - please make a GUI! GUI Mockup Rather than trying to describe what I would want in a GUI, I'll show you: The main settings page - you could also add options like "Start soapi with Windows", etc. Ideally, soapi would start minimized as an ...


1

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


1

Thanks for this super library! I've used it for overflow 7 - http://bit.ly/overflow7 I've put a few detailed comments on the codeplex discussion site - http://stacky.codeplex.com/Thread/View.aspx?ThreadId=242369 - hope these help. Thanks again Stuart



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