Is it my code or is Commission Junction down today?

Discussion in 'Commission Junction' started by SimonHa, Nov 28, 2009.

  1. #1
    Hello,

    I found code on my computer that I don't remember running in a while. I can't remember if it was working when I finished it. I ran it today to see if it would work and I got no responses from CJ. Can anybody look at it and see if it is my code that is the problem?

    <?php 
    ini_set("max_execution_time", 120);
    $url='https://product-search.api.cj.com/v2/product-search?website-id=XXXXXX&isbn=0321543254&serviceable-area=US'; 
    $ch = curl_init(); 
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); 
    $CJ_KEY =''; 
    curl_setopt($ch, CURLOPT_URL, $url); 
    curl_setopt($ch, CURLOPT_POST, FALSE); 
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); 
    curl_setopt($ch, CURLOPT_HTTPHEADER, 
    array('Authorization: ' . $CJ_KEY)); 
    $curl_results = curl_exec($ch);   
    $info = simplexml_load_string($curl_results); 
    print_r($info); 
    ?>
    
    PHP:
     
    SimonHa, Nov 28, 2009 IP