How to add API to wordpress
-
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: “https://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:
https://www.baseball.martinkleis.org
Thankyou
Martin
- The topic ‘How to add API to wordpress’ is closed to new replies.