|1.||Can I write a live draft client to interface with MyFantasyLeague.com's native live draft?|
Answer: Yes! If you're a developer who is familiar with our developer's program, the following tips will allow you to write an application that would interface directly with the MyFantasyLeague.com live draft, allowing your application to make picks to an MFL live draft, and follow along with the rest of the draft as it progresses on the MFL site.
Your application will need to be able to read one or more of the the following XML files on a regular basis (preferably every 5 seconds or so to give the customer a near-real-time experience):
1 ) http://www.myfantasyleague.com/fflnetdynamic1995/_LEAGUE_draft_results.xml - an XML file containing the current league draft order, including any picks made so far.
2 ) http://www.myfantasyleague.com/fflnetdynamic1995/_LEAGUE_draft_status.xml - an XML file containing various status messages - for example, if a draft pick did not go through, why it was not allowed. This file might not exist at the beginning of a draft, so your program needs to properly handle a 404 (page not found) response from our server for this file.
3 ) http://www.myfantasyleague.com/fflnetdynamic1995/_chat.xml - an XML file containing the latest league chat messages posted to the live draft room. This file might not exist if no chat messages have been written to your league, so your program needs to properly handle a 404 (page not found) response from our server for this file.
The above files are all that is needed to write an application that offers a real-time view into an MFL draft. To allow a customer to actually make draft picks from your application, you'll need the following information.
1 ) Establish a session to the MyFantasyLeague.com league in question following the "Login Required" instructions available on this page.
2 ) Make a call to the URL http://football.myfantasyleague.com/1995/live_chat?L=&PLAYER_PICK=player_id&XML=1 where player_id is the player id to select.
3 ) If the pick is successful, the _LEAGUE_draft_results.xml file will be updated with the pick. If the pick is unsuccessful, the _LEAGUE_draft_status.xml file will be updated with the reason why the pick did not go through.
Finally, to allow customers to write chat messages to the league, you'd need to establish a session to the site following the "Login Required" instructions available on this page, and then call a URL in this format:
How helpful was this answer?
Didn't See Your Question Above? Please review the resources on the left-hand side of this page, or,