Rapid account:

/ navii

讨论区

103
Title
Created at (Click to sort ascending)
A
1
Madhanj, It's not possible to fetch data for more than a day at this time. Thu 6:20 3/8/17
A
4
Try using the CURL library instead of Unirest. ``` $ch = curl_init( 'https://fuelprice.p.mashape.com/' ); curl_setopt( $ch, CURLOPT_POSTFIELDS, json_encode(['fuel' => 'p', 'state' => 'dl']) ); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt( $ch, CURLOPT_HTTPHEADER, array('Content-Type:application/json')); curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true ); $result = curl_exec($ch); curl_close($ch); var_dump($result); ``` Tue 7:27 25/7/17
A
4
Try using the CURL library instead of Unirest. ``` $ch = curl_init( 'https://fuelprice.p.mashape.com/' ); curl_setopt( $ch, CURLOPT_POSTFIELDS, json_encode(['fuel' => 'p', 'state' => 'dl']) ); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt( $ch, CURLOPT_HTTPHEADER, array('Content-Type:application/json')); curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true ); $result = curl_exec($ch); curl_close($ch); var_dump($result); ``` Tue 7:27 25/7/17
A
4
Please refer my previous reply again. "Both are current, but from different vendors. Vendor named the cities differently.". Sat 6:38 22/7/17
A
1
You can use the CURL library to send the POST request. Closing this ticket because you opened another one. Lets keep the conversation there. Sat 6:37 22/7/17
A
4
Try using the CURL library instead of Unirest. ``` $ch = curl_init( 'https://fuelprice.p.mashape.com/' ); curl_setopt( $ch, CURLOPT_POSTFIELDS, json_encode(['fuel' => 'p', 'state' => 'dl']) ); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt( $ch, CURLOPT_HTTPHEADER, array('Content-Type:application/json')); curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true ); $result = curl_exec($ch); curl_close($ch); var_dump($result); ``` Tue 7:27 25/7/17