1. Sultan2017

    Sultan2017 New Member

    Feb 10, 2017
    2
    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:
    PHP:
        $ch2 curl_init("http://upload.oboom.com/1/ul?token=MY API Key&parent=1");
       
    curl_setopt($ch2CURLOPT_HEADER0);
       
    curl_setopt($ch2CURLOPT_POSTtrue);
       
    curl_setopt($ch2CURLOPT_RETURNTRANSFER1);
       
    curl_setopt($ch2CURLOPT_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($ch2CURLOPT_REFERER'');
       
    $arr = array('file' => new CURLFile ("test.txt"));
       
    curl_setopt($ch2CURLOPT_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?
     

Share This Page