Hello Guys,
I am new in bubble.is.
Please help me to understand the data format to communicate with bubble.is.
I have used the following script but it’s not working.
Am I sending wrong data format or right?
Please guide me!
$curl = curl_init();
$json_data = array(
‘from’=>‘position1’,
‘to’=>‘position2’,
‘date’=>‘12/9/17’,
‘pax’=>‘3’,
‘email’=>‘My Email ID’
);
curl_setopt_array($curl, array(
CURLOPT_URL => ‘https://myappurl.com/version-test/api/1.1/wf/one-way-flightrequest’,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => “”,
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => “POST”,
CURLOPT_POSTFIELDS =>json_encode($json_data),
CURLOPT_HTTPHEADER => array(
“cache-control: no-cache”,
“content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW”,
“postman-token: ******************************”
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
Regards,
Mintu Moni Das