0

FantasySports API with PHP , is this correct code?

Hi
I am new one in Fantasy Sports.I am try to run the query select * from fantasysports.games where game_key="237" ,
when executing this an error occurred..


Warning : session_start() [ function.session-start ]: Cannot send session cache limiter - headers already sent (output started at /homepages/45/d377729269/htdocs/yourwebsiteupdate.co.uk/fantasy/test.php:76) in /homepages/45/d377729269/htdocs/yourwebsiteupdate.co.uk/fantasy/yosdk/lib/Yahoo.inc on line 1553

Error: Cannot get session object. Check your API Key (Consumer Key) and Shared Secret (Consumer Secret)

----------------------

my code is shown bellow

$two_legged_app = new YahooApplication(API_KEY,SHARED_SECRET);

$fantasysports_query =
  "select * from fantasysports.games where game_key=\"238\"";
$fantasyResponse = $two_legged_app->query($fantasysports_query);

by
1 Reply
  • very correct

    QUOTE (Sooraj @ 3 Jan 2012 6:03 AM) Hi
    I am new one in Fantasy Sports.I am try to run the query select * from fantasysports.games where game_key="237" ,
    when executing this an error occurred..


    Warning : session_start() [ function.session-start ]: Cannot send session cache limiter - headers already sent (output started at /homepages/45/d377729269/htdocs/yourwebsiteupdate.co.uk/fantasy/test.php:76) in /homepages/45/d377729269/htdocs/yourwebsiteupdate.co.uk/fantasy/yosdk/lib/Yahoo.inc on line 1553

    Error: Cannot get session object. Check your API Key (Consumer Key) and Shared Secret (Consumer Secret)

    ----------------------

    my code is shown bellow

    $two_legged_app = new YahooApplication(API_KEY,SHARED_SECRET);

    $fantasysports_query =
      "select * from fantasysports.games where game_key=\"238\"";
    $fantasyResponse = $two_legged_app->query($fantasysports_query);

    0

Recent Posts

in Fantasy Sports API