HTTP POST request with array data from windows server to webserver

Job ID: 34573549

Budget: €30 – €250 EUR

Hello,

I'm looking for someone who can build a script in either BASH, PS or in Talend Open Studio that iterates either threw csv files in a specific folder or from a maria db table and use that data to build a Post request to a REST service (Wordpress/Woocommerce). There are 3 variables to be send along with an array. There are 2 matches that have to be made in the found data to retrieve the correct array. Those matches are based on 2 of the 3 values from the 4 variables that have to be send along with the array.

Example curl request which is not wanted since it's not in the language that is requested.

<?php
function sc_curl_post_req($url,$data){
$curl = curl_init();
curl_setopt($curl,CURLOPT_URL,$url);
curl_setopt($curl,CURLOPT_POST,true);
curl_setopt($curl,CURLOPT_POSTFIELDS,http_build_query($data));
curl_setopt($curl,CURLOPT_RETURNTRANSFER,true);
$result = curl_exec($curl);
curl_close($curl);
return json_decode($result,true);
}

$data = array(
'order-id'=>Website Order number,// Column name in csv
'tracking_url'=>'https://same-url-every-time.com/track/', // Will be same url every time
'tracking_num'=>'Verwachte leverdatum', // Column name in csv
'items'=>array( // Shipped items in current shipment // For each match on Website order number and Verwachte leverdatum.
array(
'Artnr'=>'629100', // Column name in csv
'Aantal'=>5, // Column name in csv
),
array(
'Artnr'=>'629102', // Column name in csv
'Aantal'=>5, // Column name in csv //and so on
),
)
);

$url = 'https://your-site.com/wp-json/wxp-shipment-data/wxp-data/?key=44a298073f287782f48c6bd01bdcb5dd&action=update';
//action=update if action parameter passed in URL, it will create new shipment on every request
//if "action=update" removed from URL then it will return all existing shipment array and won't create any new shipment


$json = sc_curl_post_req($url,$data);
echo '<pre>'; print_r($json); echo '</pre>';
die;

There is a csv file uploaded (same fields are available in mariadb table) and as a reference i mentioned // Column name in csv where u can find a match between the fields and the data.

Please reply with at least the data below in your reply;

* expected time needed.
* total price for this job.
* In which of the requested language or in the program Talend open studio u will make this project.

Thanks in advance for your time.