Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.11 KB | None | 0 0
  1. $.ajax({
  2. url: 'https://heisenbug-premier-league-live-scores-v1.p.mashape.com/api/premierleague/table',
  3. type: 'GET',
  4. data: {},
  5. dataType: 'json',
  6. success: function(data) {
  7. $(data.records).each(function(index, value) {
  8.  
  9.  
  10.  
  11. });
  12.  
  13. console.dir((data.source));
  14. },
  15. error: function(err) { alert(err); },
  16. beforeSend: function(xhr) {
  17. xhr.setRequestHeader("X-Mashape-Authorization",
  18. "Auth Code");
  19. }
  20. });
  21.  
  22. {
  23. "records": [
  24. {
  25. "team": "Manchester City",
  26. "played": 10,
  27. "win": 8,
  28. "draw": 0,
  29. "loss": 2,
  30. "goalsFor": 29,
  31. "goalsAgainst": 12,
  32. "points": 24
  33. },
  34. {
  35. "team": "Arsenal",
  36. "played": 10,
  37. "win": 7,
  38. "draw": 2,
  39. "loss": 1,
  40. "goalsFor": 16,
  41. "goalsAgainst": 6,
  42. "points": 23
  43. },
  44. {
  45. "team": "Tottenham",
  46. "played": 10,
  47. "win": 5,
  48. "draw": 4,
  49. "loss": 1,
  50. "goalsFor": 18,
  51. "goalsAgainst": 7,
  52. "points": 19
  53. },
  54. {
  55. "team": "Leicester",
  56. "played": 10,
  57. "win": 5,
  58. "draw": 4,
  59. "loss": 1,
  60. "goalsFor": 16,
  61. "goalsAgainst": 13,
  62. "points": 19
  63. },
  64. {
  65. "team": "Manchester United",
  66. "played": 10,
  67. "win": 5,
  68. "draw": 4,
  69. "loss": 1,
  70. "goalsFor": 12,
  71. "goalsAgainst": 4,
  72. "points": 19
  73. },
  74. {
  75. "team": "West Ham",
  76. "played": 10,
  77. "win": 4,
  78. "draw": 4,
  79. "loss": 2,
  80. "goalsFor": 16,
  81. "goalsAgainst": 12,
  82. "points": 16
  83. },
  84. {
  85. "team": "Liverpool",
  86. "played": 9,
  87. "win": 4,
  88. "draw": 3,
  89. "loss": 2,
  90. "goalsFor": 11,
  91. "goalsAgainst": 11,
  92. "points": 15
  93. },
  94. {
  95. "team": "Norwich",
  96. "played": 10,
  97. "win": 4,
  98. "draw": 3,
  99. "loss": 3,
  100. "goalsFor": 12,
  101. "goalsAgainst": 10,
  102. "points": 15
  103. },
  104. {
  105. "team": "Southampton",
  106. "played": 10,
  107. "win": 4,
  108. "draw": 2,
  109. "loss": 4,
  110. "goalsFor": 17,
  111. "goalsAgainst": 13,
  112. "points": 14
  113. },
  114. {
  115. "team": "Chelsea",
  116. "played": 10,
  117. "win": 4,
  118. "draw": 2,
  119. "loss": 4,
  120. "goalsFor": 15,
  121. "goalsAgainst": 14,
  122. "points": 14
  123. },
  124. {
  125. "team": "West Bromwich Albion",
  126. "played": 11,
  127. "win": 4,
  128. "draw": 2,
  129. "loss": 5,
  130. "goalsFor": 14,
  131. "goalsAgainst": 17,
  132. "points": 14
  133. },
  134. {
  135. "team": "Crystal Palace",
  136. "played": 11,
  137. "win": 4,
  138. "draw": 2,
  139. "loss": 5,
  140. "goalsFor": 12,
  141. "goalsAgainst": 12,
  142. "points": 14
  143. },
  144. {
  145. "team": "Watford",
  146. "played": 11,
  147. "win": 4,
  148. "draw": 2,
  149. "loss": 5,
  150. "goalsFor": 11,
  151. "goalsAgainst": 10,
  152. "points": 14
  153. },
  154. {
  155. "team": "Stoke",
  156. "played": 9,
  157. "win": 4,
  158. "draw": 1,
  159. "loss": 4,
  160. "goalsFor": 10,
  161. "goalsAgainst": 9,
  162. "points": 13
  163. },
  164. {
  165. "team": "Swansea",
  166. "played": 10,
  167. "win": 3,
  168. "draw": 4,
  169. "loss": 3,
  170. "goalsFor": 9,
  171. "goalsAgainst": 12,
  172. "points": 13
  173. },
  174. {
  175. "team": "Everton",
  176. "played": 11,
  177. "win": 3,
  178. "draw": 4,
  179. "loss": 4,
  180. "goalsFor": 23,
  181. "goalsAgainst": 20,
  182. "points": 13
  183. },
  184. {
  185. "team": "Sunderland",
  186. "played": 10,
  187. "win": 3,
  188. "draw": 2,
  189. "loss": 5,
  190. "goalsFor": 12,
  191. "goalsAgainst": 11,
  192. "points": 11
  193. },
  194. {
  195. "team": "Bournemouth",
  196. "played": 9,
  197. "win": 2,
  198. "draw": 4,
  199. "loss": 3,
  200. "goalsFor": 10,
  201. "goalsAgainst": 13,
  202. "points": 10
  203. },
  204. {
  205. "team": "Newcastle United",
  206. "played": 10,
  207. "win": 2,
  208. "draw": 4,
  209. "loss": 4,
  210. "goalsFor": 14,
  211. "goalsAgainst": 14,
  212. "points": 10
  213. },
  214. {
  215. "team": "Aston Villa",
  216. "played": 9,
  217. "win": 0,
  218. "draw": 3,
  219. "loss": 6,
  220. "goalsFor": 6,
  221. "goalsAgainst": 13,
  222. "points": 3
  223. }
  224. ]
  225. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement