Created
July 1, 2021 11:50
-
-
Save bossly/5e7954dd23e615beaafa2b6df3a1219f to your computer and use it in GitHub Desktop.
Postma Visualizing RSS feed
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 jsonObject = xml2Json(responseBody); | |
var channel = jsonObject.rss.channel; | |
var template = ` | |
<ul> | |
{{#each response}} | |
<li> | |
<a href="{{link}}">{{title}}</a> | |
<sub>{{pubDate}}</sub> | |
</li> | |
{{/each}} | |
</lu> | |
`; | |
/* FEED DATA INTO TEMPLATE */ | |
pm.visualizer.set(template, { | |
response: channel.item | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment