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

Not given url to test connection with in API

I am looking to make an app that connects to a JSON file.

However, the only link available in the documentation is the following as an example:

GET https://bibles.org/v2/chapters/eng-KJVA:1Cor.2/verses.js

normally, i'd look for somewhere to put my API key that i registered with my app.

This link is just an example as someone would search for a specific verse, or key/value within the JSON.

can anyone help?

1 Answer

Nathan Williams
seal-mask
.a{fill-rule:evenodd;}techdegree
Nathan Williams
Python Web Development Techdegree Student 6,851 Points

Hi Andy,

It looks like they use HTTP Basic auth, where the user-name is your API token; Their API documentation covers this pretty well, and should hopefully be enough to get you up and running.

Regards,

Nathan

yeah I was reading through that,

I am just not sure how to use PhP within my android app, I was a little confused by that.