Need CURL expert, willing to pay

Discussion in 'PHP' started by GoldenGrahams, Mar 15, 2010.

  1. #1
    I have the authentification done, basicly all i need is:

    http://code.google.com/apis/youtube....html#Handling_the_Direct_Upload_API_Response

    into a php script

    Ill fill in all the values, i just need to have the code set out the right way, i cant figure it out for the life of me.

    add me on msn and we can discuss it and payment.

    msn: paul :cool: @ :cool: paulrogers _dot_ :eek: info

    heres what i got so far:
    
    function youtube_upload($auth, $filename) {
       $url = 'http://gdata.youtube.com/feeds/api/users/default/uploads';
    
       $params['Authorisation'] = "$auth";
       $params['GData-Version'] = '2';
       $params['X-GData-Client'] = 'clientid';
       $params['X-GData-Key'] = 'devkey';
       $params['Slug'] = "$filename";
       $params['Content-Length'] = '1111111';
       $params['Connection'] = 'Close';
    
       $params[''] = '--f93dcbA3';
       $params['Content-Type'] = 'application/atom+xml; charset=UTF-8';
       $params['X-GData-Client'] = 'clientid';
    
    
       $params[''] = '--f93dcbA3-';
    
       $user_agent = "Mozilla/5.0 (compatible; MSIE 5.01; Windows NT 5.0)";
       $ch = curl_init();
       curl_setopt($ch, CURLOPT_POST,1);
       curl_setopt($ch, CURLOPT_POSTFIELDS,$params);
       curl_setopt($ch, CURLOPT_URL,$url);
       curl_setopt($ch, CURLOPT_USERAGENT, $user_agent);
       curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
    
       $result=curl_exec ($ch);
       curl_close ($ch);
    return $result;
    }
    
    Code (markup):
    Thanks
     
    GoldenGrahams, Mar 15, 2010 IP
  2. phpmik

    phpmik Peon

    Messages:
    3
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hello, I believe I can help you, but do not quite understand your request in full.

    Please PM me if you desire and still need help

    Regards,
    phpMik
     
    phpmik, Mar 15, 2010 IP