Answer the question
In order to leave comments, you need to log in
Script for sending a post request and getting a json response for rest api, what is the best way to do it?
I don't know anything about programming. I used to be a little interested in html and php, but not in detail.
There was a need to check citizens for self-employment, about 1000 people a day, which is very difficult to do by hand.
The FTS has a REST API.
What is the easiest way for a layman to do automation?
https://statusnpd.nalog.ru/api/v1/tracker/taxpayer... 'endpoint A
POST
request
{
"inn": "525741209968",
"requestDate": "2019-01-11"
}
Answer the question
In order to leave comments, you need to log in
Here I would make this request directly from the html page using fetch . Search Google for an example of a fetch request. One but! If this request is with keys, then it is better to do it on the server, and give the result to the client, and protect your script with a password.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question