1

Closed

Make baseUrl of the StackOverflowClient Class accesible

description

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

comments

lfoust wrote May 27, 2010 at 11:03 PM

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

svick wrote May 28, 2010 at 12: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 http://stackoverflow.com/questions/66/). 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 2: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 4:28 PM

Resolved with changeset 49620.

lfoust wrote May 28, 2010 at 6: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.