Get Runner Description

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BetEnvy
    Junior Member
    • Mar 2017
    • 7

    #1

    Get Runner Description

    Hi,

    I am having some trouble trying to display runner description - a lot of the links I'm finding most be taking me to an out of date resource as the docs aren't loading.

    I currently have the following code which brings back some basic information, but I am trying to retrieve the runner description via the following code. I'm struggling to find where to place any params.

    Any help would be appreciated

    PHP Code:
    use Betfair\BetfairFactory;
    use 
    Betfair\Model\MarketFilter;



    require 
    'includes/vendor/autoload.php';




            
    $betfair BetfairFactory::createBetfair('$api''$user''$pass');
            
    $market $betfair->getBetfairMarketCatalogue();
            
    $marketDetail $market->getMarketCatalogueFilteredByEventIds(array($id));
    print_r($marketDetail); 
  • jabe
    Senior Member
    • Dec 2014
    • 705

    #2
    Originally posted by BetEnvy View Post
    Hi,

    I am having some trouble trying to display runner description - a lot of the links I'm finding most be taking me to an out of date resource as the docs aren't loading.

    I currently have the following code which brings back some basic information, but I am trying to retrieve the runner description via the following code. I'm struggling to find where to place any params.

    Any help would be appreciated

    PHP Code:
    use Betfair\BetfairFactory;
    use 
    Betfair\Model\MarketFilter;



    require 
    'includes/vendor/autoload.php';




            
    $betfair BetfairFactory::createBetfair('$api''$user''$pass');
            
    $market $betfair->getBetfairMarketCatalogue();
            
    $marketDetail $market->getMarketCatalogueFilteredByEventIds(array($id));
    print_r($marketDetail); 
    It looks like you've got hold of some PHP example code. It's a long time since I did any PHP, but the procedure getMarketCatalogueFilteredByEventIds(array($id)) will likely return a number of market catalogue details. It's the code in that procedure which will be more illuminating to anyone who could help.

    Looking in the documentation
    http://docs.developer.betfair.com/do...lu3yomq5qye0ni
    at the listMarketCatalogue call
    http://docs.developer.betfair.com/do...arketCatalogue
    the runner description data is only returned if you ask for it by
    including RUNNER_DESCRIPTION in the marketProjection parameters
    http://docs.developer.betfair.com/do...rketProjection
    plus you might want RUNNER_METADATA as well.

    Comment

    • BetEnvy
      Junior Member
      • Mar 2017
      • 7

      #3
      Thanks, thats shed some light!

      It's worth mentioning I am using the library https://github.com/danieledangeli/betfair-php

      Comment

      Working...
      X