M
M
makedonets2018-10-29 13:16:00
PHP
makedonets, 2018-10-29 13:16:00

How to work with the API correctly?

Good afternoon. Can anyone share how to work with a third-party api? The site has a form, the data from which must be sent to the server and actually display the received response. If anyone can advise, I'll be grateful.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
ivan77011, 2018-10-30
@makedonets

There are many HTTP clients for API testing, many even built into the IDE itself.
If you are familiar with VS Code, I will personally recommend REST Client
. If you do not use VS Code, then Postman is clearly suitable.

O
oldhowl, 2018-10-30
@oldhowl

See what the browser sends to the form via f12 on the Network tab.
Play the same request in the Postman tool.
There is a Code button that translates this request into many popular programming languages, but forget about curl.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question