Newsfeeds

Returns either a list of newsfeeds or the contents of one or more RSS newsfeeds. Feed parsing is done via the class wrappers rather than send a parsed feed via the API for performance reasons. Available requests are 'newsfeeds' and 'newsfeed', though both return similar response data.

Newsfeeds

Returns a list of available newsfeeds and the business's 'Exit Site' disclosure.

Filter Key: newsfeedid (optional)

Request

https://ifaportals.co.uk/api/1.0/newsfeeds/apikey/responseformat

XML Response

<?xml version="1.0" encoding="utf-8"?>
<newsfeeds>
    <header>
        <exitSiteStatement></exitSiteStatement>
    </header>
    <data>
        <newsfeed>
            <newsfeedID></newsfeedID>
            <newsfeedTitle></newsfeedTitle>
            <newsfeedCategory></newsfeedCategory>
            <newsfeedDescription></newsfeedDescription>
            <newsfeedButtonUri></newsfeedButtonUri>
            <newsfeedUri></newsfeedUri>
        </newsfeed>
    </data>
</newsfeeds>

PHP

$api->getNewsfeeds($newsfeedid = null);

Newsfeed

Returns a list of newsfeeds and the business's 'Exit Site' disclosure. Class wrappers retrieve and parse each included feed, returning $items from each feed.  This is more efficient than parsing before serving via API. Exit Site disclosure is served when accessing a newsfeed link.

Filter Key: newsfeedid (optional)

Request

https://ifaportals.co.uk/api/1.0/newsfeed/apikey/responseformat

XML Response

<?xml version="1.0" encoding="utf-8"?>
<newsfeeds>
    <header>
        <exitSiteStatement></exitSiteStatement>
    </header>
    <data>
        <newsfeed>
            <newsfeedID></newsfeedID>
            <newsfeedTitle></newsfeedTitle>
            <newsfeedCategory></newsfeedCategory>
            <newsfeedDescription></newsfeedDescription>
            <newsfeedButtonUri></newsfeedButtonUri>
            <newsfeedUri></newsfeedUri>
        </newsfeed>        
    </data>
</newsfeeds>

PHP

$api->getNewsfeed($newsfeedid, $items = 5);