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
Elizabeth Johannson
1,442 PointsPulling data into an app from website that has a login
Hi,
Can anyone tell me where I can learn how to pull data into an app from a website that has a login?
My kids school has a website that you have to login to in order to get school news, class news, homework assignments, etc.
I am working my way through the Build a Blog Reader App project and it covers most of what I want to do BUT what I want to add is to have the user enter their user name and password once, have the app remember it, and then use it to log in and display the various pages within the app.
Any tips on where to learn to do this?
Thanks, Elizabeth
3 Answers
Nathan F.
30,773 PointsIt's unlikely that the school has an API that would make this easy to do, unless they are using some 3rd party service or they have an excellent dev team. :) However, you could always build an app with webviews and access the pages that way.
Edit: Sorry, didn't see Jeremy's answer. And unfortunately, I have no resources to add or contribute.
Jeremy Germenis
29,854 PointsYou could have your app post the username and password to wherever the school website form is posting it to and in a different function pull the information you need from specified url's. It would be better to see if a RSS feed is available to use.
Elizabeth Johannson
1,442 PointsHi Jeremy,
There is not an RSS feed.
Yes, what you describe is what I want to do, but I don't know how to program it. Can you link me to a tutorial or information that would help me learn how?
Thanks, Elizabeth
Jeremy Germenis
29,854 PointsSorry, I am not a mobile app developer I know other programming languages and that this is possible. Breakdown the concepts and do some googling like "Java post form data" or whatever language your using.
Elizabeth Johannson
1,442 PointsUm, yeah. I'm still hoping that there might be someone on this forum with some advice beyond, "Google how to do it."
Not that I don't appreciate the confirmation that it should be possible to have an app do what I want to do.
Elizabeth Johannson
1,442 PointsElizabeth Johannson
1,442 PointsYes, an app with webviews would work fine. I just don't know how to code the login information so the app would be able to login to the site and access the webviews.