-
Notifications
You must be signed in to change notification settings - Fork 7
/
testTwitterApi.html
31 lines (30 loc) · 1016 Bytes
/
testTwitterApi.html
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
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="utf-8" />
</head>
<body>
<div id="memberList"></div>
<script src="js/jquery-1.6.4.min.js"></script>
<script src="js/api/twitterApi.js"></script>
<script>
$(document).ready( function() {
twitterApi.getUserTimeLine(function(data) {
var html = [];
for(var i in data)
{
html.push("<dl>");
//html.push("<dt>Member Name:</dt><dd><a href=\"" + data[i].profile_url + "\">" + data[i].name + "</a></dd>");
//html.push("<dt>Bio:</dt><dd>" + data[i].bio + "</dd>");
//html.push("<dt>Photo:</dt><dd><img src=\""+ data[i].photo_url+"\"/></dd>");
html.push("<dt>text:</dt><dd>"+data[i].text+"</dd>");
html.push("<dt>created_at:</dt><dd>"+data[i].created_at+"</dd>");
html.push("<dt>retweeted</dt><dd>"+data[i].retweeted+"</dd>");
html.push("</dl>");
}
$("#memberList").append(html.join(''));
});
});
</script>
</body>
</html>