Jump to content

Working with APIs in android studio

I am a beginner with android app development and am working on a little project for a converter app. I want it to be able to convert currencies. So I have been hearing about APIs and was wondering if there was an API out there that could help me with this and how do I go around this. I am not asking for steps specifically for this but like a general tutorial on just how to use and implement APIs in android studio, maybe like a link to a tutorial or a step to step on how to do this generally so if I ever need to use APIs ever again I wouldn't need to bother anyone again.

Link to comment
Share on other sites

Link to post
Share on other sites

Generally speaking an API is something that can receive and answer information requests. For instance a currency conversion API could take a couple of currencies as arguments and return the relative value - I'm pretty sure there are quite a few that do this. All you have to do as a developer is to send that request (usually by making an http request at a specially formatted address) and receive the answer (usually a http response), than use the data however you please.

 

The specifics of how to use the API depend on the service, they will most likely be explained in the documentation. Take a look at this for example.

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to comment
Share on other sites

Link to post
Share on other sites

3 hours ago, Sauron said:

Generally speaking an API is something that can receive and answer information requests. For instance a currency conversion API could take a couple of currencies as arguments and return the relative value - I'm pretty sure there are quite a few that do this. All you have to do as a developer is to send that request (usually by making an http request at a specially formatted address) and receive the answer (usually a http response), than use the data however you please.

 

The specifics of how to use the API depend on the service, they will most likely be explained in the documentation. Take a look at this for example.

Thank you so much for this I really appreciate this

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×