AnsweredAssumed Answered

Curl post

Question asked by walfwood on Jun 6, 2018
Latest reply on Jun 9, 2018 by wimdecorte

I am vary new to filmmaker and API request. JSON seems pretty simple, but I am unsure how to use the cURL option to send and receive request.


This is a sample form listing on the site for the API.

Any help would be appreciated.




$data = array('ACCOUNT'=>'12345678','SECRET'=>'42b7f9ebf23b095374a76b4a1ed0fb9c6','REQUEST'=>'GETMODEL','DATA'=>'354383061213643');

$data_json = json_encode($data);



$ch = curl_init();



curl_setopt($ch, CURLOPT_URL, "" );

curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PUT');

curl_setopt($ch, CURLOPT_POSTFIELDS, $data_json);