1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
import QtQuick 2.0
import QtQuick.XmlListModel 2.0
// We can Keep a Eye on these api also
//http://blog.programmableweb.com/2012/08/01/91-sports-apis-fanfeedr-seatwave-and-espn/
//http://football.myfantasyleague.com/
/*
******************************
** CBS
******************************
http://developer.cbssports.com/documentation/developing-an-application
*/
/*
******************************
** Fantasy Data
******************************
http://fantasydata.com/rss/rotoworld/
*/
/*
***************************
** Yahoo API
***************************
*/
/*
****************************
** ESPN
****************************
DOCS http://developer.espn.com/io-docs
Api Keys
ESPN apikey=2h5sytpesd97v5fxmrfrkm7x
espn can be used for a couple of things.
First to get all the info about a player (id most important )
http://api.espn.com/v1/sports/football/nfl/athletes/?_accept=text%2Fxml&apikey=2h5sytpesd97v5fxmrfrkm7x
then we can use the id of the player to get things like there Picture
http://a.espncdn.com/combiner/i?img=/i/headshots/nfl/players/full/{PLAYERID}.png&w=350&h=254
we can also get there teams icon with
http://a1.espncdn.com/prod/assets/clubhouses/2010/nfl/bg_elements/teamlogos/{TEAM ABRIVE}.png
We can get the background for espn with the url
http://a1.espncdn.com/prod/assets/clubhouses/2010/nfl/bg_elements/SF.jpg
*/
/*
*******************************
** NFL.COM
*******************************
http://i.nflcdn.com/static/site/5.12/img/subheaders/{TEAM ABRIVE}.png
api keys needed
applogin
http://api.fantasy.nfl.com/application/login?appKey=sampleapp×tamp=1268089312&signature=c21bdddc4d4b33f1764c38b9200248d8
authLogin
http://api.fantasy.nfl.com/auth/login?appKey=sample&username=testuser&password=passtest×tamp=1268089312&signature=c21bdddc4d4b33f1764c38b9200248d8
http://api.fantasy.nfl.com/league/players?leagueId=1&authToken=MTIzNCYxJjEyNjgwODg4NTY= NEED API KEY
http://api.fantasy.nfl.com/league/schedule?leagueId=1&authToken=MTIzNCYxJjEyNjgwODg4NTY=
http://api.fantasy.nfl.com/league/settings?leagueId=1&authToken=MTIzNCYxJjEyNjgwODg4NTY=
http://api.fantasy.nfl.com/league/standings?leagueId=1&authToken=MTIzNCYxJjEyNjgwODg4NTY=
http://api.fantasy.nfl.com/league/messages?leagueId=1&authToken=MTIzNCYxJjEyNjgwODg4NTY=
http://api.fantasy.nfl.com/league/matchups?leagueId=1250&week=3&authToken=MTIzNCYxJjEyNjgwODg4NTY=
http://api.fantasy.nfl.com/league/transactions?leagueId=1&authToken=MTIzNCYxJjEyNjgwODg4NTY=
http://api.fantasy.nfl.com/league/team/roster?leagueId=1&teamId=1&week=4&authToken=MTIzNCYxJjEyNjgwODg4NTY=
http://api.fantasy.nfl.com/league/team/schedule?leagueId=1&teamId=1&authToken=MTIzNCYxJjEyNjgwODg4NTY=
http://api.fantasy.nfl.com/league/team/matchup?leagueId=1&teamId=1&week=4&authToken=MTIzNCYxJjEyNjgwODg4NTY=
http://api.fantasy.nfl.com/user/leagues?authToken=MTIzNCYxJjEyNjgwODg4NTY=
http://api.fantasy.nfl.com/user/notifications?authToken=MTIzNCYxJjEyNjgwODg4NTY=
**********NO KEY NEEDED***************
http://www.nfl.com/rss/rsslanding?searchString=gamehighlightsVideo << game Highlights
http://www.nfl.com/liveupdate/scorestrip/ss.xml << liveupdates of scores
http://api.fantasy.nfl.com/players/news << FF player News
http://api.fantasy.nfl.com/players/scoringleaders?season=2010&week=1 << player FF leaders by year
http://api.fantasy.nfl.com/leaderboard?siteId=34&count=10 << FF leaders
http://api.fantasy.nfl.com/players/editordraftranks << FF draft ranking NFL editors
http://api.fantasy.nfl.com/players/userdraftranks << by the User
http://api.fantasy.nfl.com/players/researchinfo << sort list of top owned research
http://api.fantasy.nfl.com/players/news << player News
http://api.fantasy.nfl.com/players/scoringleaders?season=2010&week=1
keep eye on this
http://api.fantasy.nfl.com/players/advanced?season=2012&week=1&count=1
*/
XmlListModel{
source: "http://www.nfl.com/rss/rsslanding?searchString=home"
query: "//feed/entry"
namespaceDeclarations: "declare default element namespace 'http://www.w3.org/2005/Atom';"
XmlRole{name:"title"; query: "title/string()"}
XmlRole{name:"author"; query: "author/name/string()"}
XmlRole{name:"sourceUrl"; query: "id/string()"}
XmlRole{name:"summary"; query: "summary/string()"}
XmlRole{name:"created"; query: "published/string()"}
onStatusChanged: {
if(status === XmlListModel.Loading){console.log("loading")}
if(status === XmlListModel.Error){console.log("Error \t"+ errorString())}
if(status === XmlListModel.Ready){
console.log(count)
}
}
}
|