“API” Ответ

API

An Application Programming Interface (API) is a set of commands, 
functions, protocols, and objects that programmers can use to 
create software or interact with an external system.

Think of API as an interface for programs. A UI (User Interface) is an interface
for the user.
- Examples of API: library API (jQuery, Express, JavaScript), or Data request 
API like Weather condition API and current time API.

- To make an API request you need to use an HTTP/HTTPS request to external
servers

Say you were going to a restaurant, 
we know that there are things that are 
on the menu like cakes and desert while 
there are raw ingredients in the Kitchen.

The restaurant would not let you go into 
the Kitchen to eat ingredients since the 
restaurant has certain things that they sell 
and let you buy and there are other things that 
are off limits, which is similar to data.

Facebook has data on users while the police API 
has data on crimes. They all have certain data that 
they allow you to access and some data that are not your business.

At a restaurant, you are provided with a menu (API) that 
allows to you to choose what you want and what they provide.

For a weather API, they include the temperature, 
weather condition, weather image, and pressure
Average Armadillo

API

export API_KEY="" # The api key can be generated on the user account in the GuardRails dashboard.
Lovely Leopard

API

curl \
  --request GET \
  --header "Authorization: bearer $JWT_TOKEN" \
  "https://api.guardrails.io/v2/accounts"
Lovely Leopard

API

View mock api: https://burgers-api.herokuapp.com/burgers
guruwalker

API

$ curl https://api.airtable.com/v0/appAMc1HcaoFzJ5PF/Table%201 \
-H "Authorization: Bearer YOUR_API_KEY"

API

[{"id":1,"name":"Samung Ac","buyIng_price":"50000","selling_price":null,"quantity":null,"image":null,"date":null,"created_at":"2021-11-18T06:29:24.000000Z","updated_at":"2021-11-18T06:29:24.000000Z"},{"id":2,"name":"Test","buyIng_price":"11111","selling_price":null,"quantity":null,"image":null,"date":null,"created_at":"2021-11-19T10:03:51.000000Z","updated_at":"2021-11-19T10:03:51.000000Z"},{"id":3,"name":"Mi","buyIng_price":"10000","selling_price":"12000","quantity":"20","image":null,"date":"2021-11-20 00:00:00","created_at":"2021-11-20T04:51:13.000000Z","updated_at":"2021-11-20T04:51:13.000000Z"},{"id":4,"name":"test","buyIng_price":"10000","selling_price":"23233","quantity":"20","image":null,"date":"2021-11-20 00:00:00","created_at":"2021-11-20T04:53:21.000000Z","updated_at":"2021-11-20T04:53:21.000000Z"},{"id":5,"name":"Google","buyIng_price":"1110","selling_price":"2000","quantity":"5","image":null,"date":"2021-11-29 00:00:00","created_at":"2021-11-28T18:13:54.000000Z","updated_at":"2021-11-28T18:13:54.000000Z"},{"id":6,"name":"test1","buyIng_price":"500","selling_price":"600","quantity":"3","image":null,"date":"2021-11-30 00:00:00","created_at":"2021-11-28T18:14:43.000000Z","updated_at":"2021-11-28T18:14:43.000000Z"}]
Itchy Ibis

API

Nadeem Mansha

API

console.log('con cca')
NgocNu Nguyenthi

API

{"cod":401, "message": "Invalid API key. Please see http://openweathermap.org/faq#error401 for more info."}
mr yeet

API

JWT_TOKEN=$(curl \
  --request POST \
  --header "Content-Type: application/json" \
  --data "{ \"apiKey\": \"$API_KEY\" }" \
  https://api.guardrails.io/v2/auth | jq -r '.jwtToken')

echo $JWT_TOKEN
Lovely Leopard

Ответы похожие на “API”

Смотреть популярные ответы по языку

Смотреть другие языки программирования