Array ( [pickup] => via magliana nuova, 302, roma [delivery] => Via dell' Aeroporto di Fiumicino, 00054 Fiumicino RM [price] => 3500 [customer] => Renata Altobelli [nr_of_luggage] => 0 [nr_of_pax] => 1 )
https://api-espring.taximobile.it/v1.3/voucher/create/
$rest_url
{"pickup":"via magliana nuova, 302, roma","delivery":"Via dell' Aeroporto di Fiumicino, 00054 Fiumicino RM","price":3500,"customer":"Renata Altobelli","nr_of_luggage":"0","nr_of_pax":"1"}
$rest_request
Array ( [0] => Content-type: application/json;charset="utf-8" [1] => Accept: application/json [2] => Cache-Control: no-cache [3] => Pragma: no-cache [4] => Authorization: ClientId b2918fd56a94c45422aecc47bd5acc44 [5] => Content-length: 187 )
HTTP/1.1 200 OK Server: nginx Date: Tue, 19 Mar 2019 08:04:31 GMT Content-Type: application/json; charset=utf-8 Content-Length: 161 Connection: keep-alive X-Powered-By: Express Access-Control-Allow-Origin: * Access-Control-Allow-Methods: PUT, GET, POST, DELETE, OPTIONS Access-Control-Allow-Headers: Content-Type ETag: W/"a1-sngOpfQ7nLdmUf5p7qTsRbDt9/Q" {"id":"ESpring-33127509771","pickup":"via magliana nuova, 302, roma","delivery":"Via dell' Aeroporto di Fiumicino, 00054 Fiumicino RM","code":52309,"price":3500}
curl_exec response
Array ( [id] => ESpring-33127509771 [pickup] => via magliana nuova, 302, roma [delivery] => Via dell' Aeroporto di Fiumicino, 00054 Fiumicino RM [code] => 52309 [price] => 3500 )