Skip to content

Instantly share code, notes, and snippets.

@chrisjason
chrisjason / espn-headlines-api_sample-public-output.xml
Created November 21, 2012 16:10
ESPN Headlines API Sample XML Output - Public Key
<?xml version="1.0"?>
<response>
<timestamp>2012-11-21T16:18:26Z</timestamp>
<resultsOffset>0</resultsOffset>
<status>success</status>
<resultsLimit>5</resultsLimit>
<resultsCount>22</resultsCount>
<headlines>
<headlinesItem>
<headline>Lakers edge Nets as Mike D'Antoni makes debut on L.A. bench</headline>
@chrisjason
chrisjason / espn-watchespn-api-output.json
Created September 27, 2012 18:51
Example output of WatchESPN API.
{
"resultsLimit":5,
"resultsOffset":0,
"resultsCount":5,
"listings":[
{
"name":"SportsCenter",
"shortName":"",
"id":537483,
"episodeId":"e11493518",
@chrisjason
chrisjason / espn-headlines-api-sample_javascript.js
Created July 18, 2012 21:31
Sample code for looping through ESPN Headlines API response and printing story headlines, using JQuery.
// Example JSONP request with jQuery
$.ajax({
url: "http://api.espn.com/v1/sports/news/headlines",
data: {
// enter your developer api key here
apikey: "{api key}",
// the type of data you're expecting back from the api
_accept: "application/json"
},
dataType: "jsonp",