listRunnerBook

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hendrixback
    Junior Member
    • Jan 2015
    • 10

    #1

    listRunnerBook

    Hello,

    When I try to return the listRunnerBook I always get this error:

    Call to api-ng failed: Response: [{"jsonrpc":"2.0","error":{"code":-32602,"message":"DSC-0018"},"id":1}]

    It means that I am passing a wrong parameter or missing one. But I cannot find it.

    My code is PHP:

    function getRunnerBook($appKey, $sessionToken, $marketId, $selectionId) {

    $params = '{
    "marketId":["' . $marketId . '"],
    "selectionId":["' . $selectionId . '"],
    "priceProjection" : ["EX_BEST_OFFERS"]
    }';

    $jsonResponse = sportsApingRequest($appKey, $sessionToken, 'listRunnerBook', $params);

    return $jsonResponse[0]->result[0];

    }

    Can anyone help me? Thank you
  • jabe
    Senior Member
    • Dec 2014
    • 705

    #2
    Try

    Code:
    "priceProjection" : {"priceData": ["EX_BEST_OFFERS"]}
    Last edited by jabe; 16-10-2017, 07:54 PM.

    Comment

    • jabe
      Senior Member
      • Dec 2014
      • 705

      #3
      I hadn't seen the addition of listRunnerBook. Now I'm wondering what advantage it brings to the party.

      Comment

      • LiamP
        Junior Member
        • Oct 2015
        • 284

        #4
        Originally posted by jabe View Post
        I hadn't seen the addition of listRunnerBook. Now I'm wondering what advantage it brings to the party.
        Let me know if you think of one, not sure why they bothered adding it.

        Comment

        Working...
        X