• Hi,
    I am a student and new to wordpress. I am trying to link iScore stats to my wordpress site for a baseball team.
    Within the iScore Team Website iScore docum,entation is talks about AJAX Call to Team Website API – Get Cumulative Stats, the code they provide is:
    $.ajax({
    context: this,
    type: “GET”,
    url: “http://api.iscoresports.com/teamwebsite/cumulativestats.php”,
    data: { s: $(“#sport”).val(), t: $(“#team”).val(), p: $(“#pwd”).val(), json: “1” },
    dataType: “jsonp”,
    success: function(data)
    {
    showResult(data);
    },
    error: function()
    {
    alert(“An error occurred in the request”);
    }
    });

    Where do I put this code within wordpress?

    Any help would be much appreciated.

    You can view my site at:

    http://www.baseball.martinkleis.org

    Thankyou
    Martin

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘How to add API to wordpress’ is closed to new replies.