B
B
Broncoopo2022-02-25 21:55:01
API
Broncoopo, 2022-02-25 21:55:01

How to handle data with api?

Hello. Straight to the point. You can help figure out how to send, receive, and process API requests in the client. fronted? like that's what it's called. In general, the user in the browser so that all operations take place.

The principle is this.
When visiting the page, a request should be sent to the API with the following address https://api.site.ru/?token=123456789&post=777
The API returns a response in JSON format. And the client, processing this response, gives the user the necessary information. So, how to implement it?
Is it possible to do this in JS format? Or what are the ways.
I would be grateful for any useful information ... honestly I don’t know what to do)
PS. Thank you for your time!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Fedor, 2022-02-25
@Mecitan

Yes, it can be implemented in JS. Here are the topics you will need:
Promises
Network Requests

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question