Created
June 29, 2015 12:04
-
-
Save scripting/02dfd9dd5d9d3053c510 to your computer and use it in GitHub Desktop.
A PagePark page implemented in JavaScript that returns the JSON representation of an OPML outline. See the notes for v0.63 for more info.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var urlOpml = "http://davewiner.com/davewiner.opml"; | |
opmlLib.readOpmlUrl (urlOpml, function (theOutline) { | |
httpResponse.writeHead (200, {"Content-Type": "application/json", "Access-Control-Allow-Origin": "*"}); | |
httpResponse.end (utils.jsonStringify (theOutline)); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
good thanks