Sultan2017
New Member
Hello,
I want to upload files with Oboom API: https://www.oboom.com/api
and PHP!
But the Upload-Script I have written has no function:
Is there someone how has a Idea or Script to upload files on oboom.com?
I want to upload files with Oboom API: https://www.oboom.com/api
and PHP!
But the Upload-Script I have written has no function:
PHP:
$ch2 = curl_init("http://upload.oboom.com/1/ul?token=MY API Key&parent=1");
curl_setopt($ch2, CURLOPT_HEADER, 0);
curl_setopt($ch2, CURLOPT_POST, true);
curl_setopt($ch2, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch2, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1');
curl_setopt($ch2, CURLOPT_REFERER, '');
$arr = array('file' => new CURLFile ("test.txt"));
curl_setopt($ch2, CURLOPT_POSTFIELDS, $arr);
$output = curl_exec($ch2);
curl_close($ch2);
echo $output;
Is there someone how has a Idea or Script to upload files on oboom.com?