API Local WAMP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • spacebiscuit
    Junior Member
    • Feb 2015
    • 5

    #1

    API Local WAMP

    Hi,

    I've manmaged to write my own script to extract odds which is working well on my remote server. I can't get the same script to work on my local WAMP server. A Google search suggested enabling XML and SSL module sin Apache, I've done so but I get the following error when I run my script:

    Code:
    Notice: Trying to get property of non-object in
    The line reporting this error is the for each:

    Code:
    $getMatches = sportsApingRequest($appKey, $sessionToken, 'listEvents', $params);
    
    foreach($getMatches[0]->result as $key => $data){
    Any ideas?

    Thanks,

    David.
  • spacebiscuit
    Junior Member
    • Feb 2015
    • 5

    #2
    I found the solution, add this line to the curl setopt lines:

    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);

    Hopefully this will help other users running development scripts locally.

    David.

    Comment

    Working...
    X