-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathabout.txt
31 lines (27 loc) · 918 Bytes
/
about.txt
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
Issues
* Rendering a wikidot list into JavaScript (JSON)
<script src="https://jsapi.wikidot.com/local--code/js/4"></script>
var apikey = "r0JF5IqvvWXmr3JRulYGNE0qd4BKeiMN";
// Get all of the pages from playlists in the 'score' category.
scorePageList = jsAPI(
"pages.select",
{"site": "playlists", "categories": ["score"]},
apikey
); // returns array of page names
$scope.scoreObjectArray = [];
for (var page in scorePageList) {
// Get the particular page.
wdPageObject = jsAPI(
"pages.get_one",
{"site": "playlists", "page": page},
apikey
);
// Extract the pertinent form data.
// parent = song
scoreObject = {};
scoreObject.song = wdPageObject.parent_fullname; //TODO Get song information and artist name.
scoreObject.date = wdPageObject.date;
scoreObject.score = wdPageObject.score;
$scope.scoreObjectArray.push(scoreObject);
}
console.log($scope.scoreObjectArray);