• Embed Injuries in Your Website

    You can now embed injury reports in your own website using our SOAP API. The wsdl file is located at the following link:
    http://www.whoshurt.com/WhosHurtFree.wsdl

    You can just copy the following few lines into your own website if you are using PHP:

    PHP Code:
    <?php
        $client 
    = new SoapClient("http://www.whoshurt.com/wsdl/WhosHurtFree.wsdl");
        echo 
    $client->getHtml('http://www.yoursite.com''fb','','');
    ?>
    If you want basketball scores instead then just replace 'fb' with 'bk'. Also, bb=baseball, sc=soccer.

    What if you run a fan site about the New York Yankees and only want their injuries? No problem just use the following code:
    PHP Code:
    <?php
        $client 
    = new SoapClient("http://www.whoshurt.com/wsdl/WhosHurtFree.wsdl");
        echo 
    $client->getHtml('http://www.yoursite.com''bb','mlb','nyy');
    ?>
    You can use other languages besides PHP. We show a PHP example because it is a popular language used by many websites.
    Attached Files Attached Files
  • Navigation

    Report
    Make Your Own Injury Reports!
    Report
    iPhone Apps
    Tweet Injury
    Cool Widgets
    Search Injuries
    RSS Feeds
    Web Services
    Join Our Team!
    Video Help