Tecnichal stuff.

Don't worry, it's in "English".

Linkpulse code sample

Sample Javascript for the Top Stories Json Feed

This example parses a Linkpulse feed in Json format and generates markup.

Set up your feeds here.

If you copy this code, please remember to change the url in linkpulseFeedUrl to one of your feeds set with Json as output format! The url in the sample code is not valid. Also change targetContainerSelector to an actual element on your page.

Code
/**
 * Sample javascript for Json-feed parsing
 *
 * Require Jquery library
 *
 * Onsite Solutions AS - 2012
 * http://www.linkpulse.com
 * http://www.onsite.no
 */
 
var targetContainerSelector = '#elementId';
var linkpulseFeedUrl = 'http://feed.linkpulse.com/v1/1234/1234';
$.getJSON(linkpulseFeedUrl + '?callback=?', function(data) {
    var feedList = [];
    $.each(data.linkpulsefeed, function(i, feed) {
        // Add whatever you want from the feed object ...
        var feedString = '<li><h3>' + feed.url.title + '</h3><p>' + feed.url.description + '</p><p>Status: last60Seconds: ' + feed.last60Seconds + ',  previous60Seconds: ' + feed.previous60Seconds + '</p>' + '</li>';
        feedList.push(feedString);
    });
    $('<ul/>', {
        html: feedList.join('')
    }).appendTo($(targetContainerSelector));
});
Output
<ul>
    <li>
        <h3>Article title ...</h3>
        <p>Article description ...</p>
        <p>Status: last60Seconds: 356,  previous60Seconds: 385</p>
    </li>
    <li>
        ...
    </li>
</ul>