Getting Started

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chriskokoko
    Junior Member
    • Jan 2014
    • 4

    #1

    Getting Started

    Hi, very new to this API.

    I've setup my account, created an AppKey through the visualiser and I've retrieved a sessionID by logging in to Betfair and then visit https://identitysso.betfair.com/view...product=...etc (I get the FORBIDDEN error like the other thread)

    However, when I run the sample PHP code (jsonrpc.php) with the APP KEY & SESSION_TOKEN all I get returned is Response: null

    Am I missing something? Is the API access key in 'My account' relevant to anything?
  • chriskokoko
    Junior Member
    • Jan 2014
    • 4

    #2
    For anyone else going through this pain, you will need either to define the curl_option VERIFY_PEER or set it to false.

    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,0);
    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,0);

    Comment

    Working...
    X