Announcement

Collapse
No announcement yet.

Error Response listMarketCatalogue

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error Response listMarketCatalogue

    Good Day Developers,

    So i tried to get the information of listMarketCatalogue but nothing is happens.

    Call to api-ng failed: Response: {"faultcode":"Client","faultstring":"DSC-0018","detail":{}}

    this returns. I am working to PHP CODE. here is the code.

    $bet = new Betfair();
    $appkey = Betfair::APP_KEY;
    $sessionToken = Betfair::SESSION_TOKEN;


    $params = '{"filter":{}}';

    $jsonResponse = $bet->sportsApingRequest($appKey, $sessionToken,
    'listMarketCatalogue',$params);

    return $jsonRespons;


    i was add to params this line of code:


    $bet = new Betfair();
    $appkey = Betfair::APP_KEY;
    $sessionToken = Betfair::SESSION_TOKEN;


    $params = '{"filter":{},
    "maxResults":"1"}';

    $jsonResponse = $bet->sportsApingRequest($appKey, $sessionToken,
    'listMarketCatalogue',$params);

    return $jsonRespons;


    and this error code returns

    Call to api-ng failed: Response: {"faultcode":"Client","faultstring":"ANGX-0004","detail":{"APINGException":{"requestUUID":"p rdang037-07181131-014a752954","errorCode":"NO_APP_KEY","errorDetails ":""},"exceptionname":"APINGException"}}

    APP_KEy is good because i return the list of events without problems.

    Thanks a lot

  • #2
    Not sure if this is the complete answer, but it may remove one issue...

    You are placing your application key into the appkey variable:

    Code:
    $appkey =  Betfair::APP_KEY;
    However, when you make the call to the listMarketCatalogue routine, you use a variable called appKey (note the captial K):

    Code:
    $jsonResponse = $bet->sportsApingRequest($appKey, $sessionToken, 'listMarketCatalogue', $params);
    I think PHP is case-sensitive so these two variables would not be the same.

    Comment


    • #3
      For listMarketCatalogue, the marketFilter must be specified. You can't just use an empty filter as you're trying to do. See below.

      http://docs.developer.betfair.com/do...arketCatalogue

      Comment

      Working...
      X