Skip to content

Commit 0a5c279

Browse files
author
Valur Hrafn Einarsson
committed
added Skjar 1 to documentation
1 parent 99a7b47 commit 0a5c279

File tree

1 file changed

+60
-1
lines changed

1 file changed

+60
-1
lines changed

app/views/apis/tv.jade

Lines changed: 60 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ article.article.dark.endpoint
33
.limit.padding
44
hgroup
55
h3 Icelandic television programming
6-
h4 Source: <a href="http://ruv.is/" target="_blank">RÚV</a> and <a href="http://stod2.is/" target="_blank">Stöð 2</a>
6+
h4 Source: <a href="http://ruv.is/" target="_blank">RÚV</a>, <a href="http://stod2.is/" target="_blank">Stöð 2</a> and <a href="http://www.skjarinn.is/einn/">Skjár 1</a>
77

88
.box.light.api
99
.content.title.blue
@@ -121,3 +121,62 @@ article.article.dark.endpoint
121121
}
122122
]
123123
}
124+
.box.light.api
125+
.content.title.blue
126+
.method get
127+
.path: a(href="http://apis.is/tv/skjar1", target="_blank") /tv/skjar1
128+
129+
.content
130+
p Get today's schedule from Skjár 1
131+
132+
h5.leading.collapse-next curl demo
133+
pre.prettyprint.curl-demo.
134+
curl -X GET 'apis.is/tv/skjar1' -H 'accept-version:1' -H 'Content-Type: application/json'
135+
136+
h5.leading.collapse-next jQuery demo
137+
pre.prettyprint.linenums.jquery-demo.
138+
$.ajax({
139+
'url': 'http://apis.is/tv/skjar1',
140+
'type': 'GET',
141+
'dataType': 'json',
142+
'success': function(response) {
143+
console.log(response);
144+
}
145+
});
146+
147+
h5.leading.collapse-next Response
148+
pre.prettyprint.linenums.response.
149+
{
150+
"results": [
151+
{
152+
"title": "Leverage",
153+
"originalTitle": "Leverage 5",
154+
"duration": "00:46:00",
155+
"description": "\u00deetta er fimmta \u00fe\u00e1ttar\u00f6\u00f0in af Leverage, \u00e6sispennandi \u00fe\u00e1ttar\u00f6\u00f0 \u00ed anda Ocean\u2019s Eleven um \u00fej\u00f3fah\u00f3p sem r\u00e6nir \u00fe\u00e1 sem misnota vald sitt og r\u00edkid\u00e6mi og n\u00ed\u00f0ast \u00e1 minnim\u00e1ttar.",
156+
"shortDescription": "Nate ver\u00f0ur a\u00f0 hreinsa mannor\u00f0 Sophie \u00feegar h\u00fan er grunu\u00f0 um \u00fej\u00f3fna\u00f0 \u00e1 \u00f3metanlegu m\u00e1lverki.",
157+
"live": false,
158+
"premier": true,
159+
"startTime": "2014-07-09 23:54",
160+
"aspectRatio": "",
161+
"series": {
162+
"episode": "10",
163+
"series": "15"
164+
}
165+
},
166+
{
167+
"title": "House of Lies",
168+
"originalTitle": "House of Lies 2",
169+
"duration": "00:28:00",
170+
"description": "Marty Khan og f\u00e9lagar sn\u00faa aftur \u00ed \u00feessum vins\u00e6lu \u00fe\u00e1ttum sem hinir raunverulegu h\u00e1karlar vi\u00f0skiptal\u00edfsins.",
171+
"shortDescription": "",
172+
"live": false,
173+
"premier": true,
174+
"startTime": "2014-07-10 00:40",
175+
"aspectRatio": "",
176+
"series": {
177+
"episode": "4",
178+
"series": "12"
179+
}
180+
}
181+
]
182+
}

0 commit comments

Comments
 (0)