Good day, everyone!
would like to ask for an advice, on which languages/topics i should learn if I want to make my project, and learn in same time.
Our company has service that sends data in Json format for clients, and they “catch” the data and store in their DB.
just as an example, they use php code similar to this:
<?php
$url = "https://site.com/client1/";
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_HTTPHEADER, array('Accept: application/json', 'Content-Type: application/json'));
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$data = <<<DATA
{
"Id": 78912,
"Customer": "customer1",
"Quantity": 1,
"Price": 18.00
}
DATA;
curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
$resp = curl_exec($curl);
curl_close($curl);
echo $resp;
?>
Would like to learn how to cath this data and use it, put it in db and make charts, sort by quantity, date, etc.
Tried searching online, but there is a lot of different pages and information, but if my second page is php it seems to work only if i keep updating the page same time when the data is being sent, and it should work even if the site is not opened.
Maybe you could guide me in right side. I don’t need the code, I need the language/languages/information to learn it myself.
Thank you!