Problems with PHP insert

Hi,

 

I've tried to insert a Conversion with this script, but i always get an error... do you know why?

Have more questions? Submit a request

1 Comments

  • 0
    Avatar
    Francesco

    Hi Mark,

    your code is almost right, but in CURL to set multiple headers you must do it in a single call.

    So you must do:

    curl_setopt($ch, CURLOPT_HTTPHEADER, array('X-Clickmeter-Authkey: '.$api, 'Content-Type: application/json'));

    curl_setopt($ch, CURLOPT_HEADER, 0);

    Hope it helps!

Please sign in to leave a comment.