Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Build a Blog Reader Android App Getting Data from the Web Trying Code and Catching Exceptions

daniwao
daniwao
13,125 Points

URL Feed

Hi, I'm wondering if I wanted to grab another blog URL how I would do that? For instance, I want to grab this URL. http://www.lakersnation.com/category/news/

Do I just do what Ben instructed by simply placing it within the URL(http://www.lakersnation.com/category/news/); method?

Or maybe can someone explain how did he get the TreeHouse blog URL with that api request. I tried googling treehouse blog API but nothing comes up. Can someone explain maybe how to google a certain blog websites api?

Thanks

1 Answer

Someone answered me this although I didn't get him well trying to run the jboss application server which hasn't worked on my pc Read this and tell me if you understood the solution pls.

Answer : Hi Sidney,

It can be created by running an application server on the particular domain. And by application server, i meant a web application running in the background created using either Python, Java, Ruby, PHP or any other language which could support HTTP request and response. In the above case the URL "http://blog.teamtreehouse.com/" would be set as the Context Path of the Web Application and the remaining are set by the Web application.

daniwao
daniwao
13,125 Points

I think the person who answered your question understood what you asked because I read your forum posting. What he's saying is that any web application created through a programming language like Python, Ruby, Java, PHP has HTTP request support. I know this as well. My question had more in line to do with how do I figure out how a website has these HTTP requests available to use and if they do, how do I get to the right URL request page so that I can access their API.

Hope that makes sense.