What does the term "Consume an API" mean?

Asked

Viewed 3,309 times

10

I see a lot of that term around here, what it would mean, and how you get it through code?

2 answers

15

It means using it :) It means that your code will access it somehow. It will invoke the available actions to request information, have operations performed. Just write a code that requests it, it’s already consuming it. No matter what type of API.

Reinforcement that consumes the API, it even needs to provide data.

Today a lot of people think that API is something for web, which it is not, that’s all.

Think of a string, you need to pick up an excerpt from it, calls the method substr(), ready is already consuming the API of string.

What is the difference of API, library and Framework?

6


The word consume is synonymous with use and spend.

In the context of programming would be to use at least one of the functionalities that the API provides, you would be consuming it.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.