This project is read-only.


Make baseUrl of the StackOverflowClient Class accesible


Can you make this property public?
Closed May 28, 2010 at 5:28 PM by lfoust


lfoust wrote May 28, 2010 at 12:03 AM

Can you please provide more details on the scenario you are trying to enable?

svick wrote May 28, 2010 at 1:51 PM

<p>I think it would be useful to be able to identify to which site does the StackOverflowClient belong. And I would like to be able to get the site's name too, if it is known. But I don't have any scenario for it (although I didn't post the original request).</p> <p>Something similar that I would find very useful is to be able to get URL for Question object (like Currently I use the code { "http://" + site.GetAddress().Replace("api.", "") + "/questions/" + question.Id.ToString() }, which is quite horrible and I also have to remember to which site that Question belongs.</p>

lprada wrote May 28, 2010 at 3:07 PM

Image this, In my app I let the user choose to connect to Stackoverflow, SF SU or any url provide in a textbox, If tthe user connect to SO i will want to tell in the status bar that you are connected to this url. I know the SO api url is know but I dont want to hardcoded in my app when you are already doing it in the library.

wrote May 28, 2010 at 5:28 PM

wrote May 28, 2010 at 5:28 PM

Resolved with changeset 49620.

lfoust wrote May 28, 2010 at 7:15 PM

svick - The request for the question url seems more suited as a feature request of the API itself and not really the responsibility of a client library.

wrote Feb 13, 2013 at 6:38 PM

wrote May 16, 2013 at 12:08 AM

wrote Dec 17, 2017 at 10:12 AM