MFN Integration Guide
  • What is MFN
  • Overview
    • Getting started
    • Integration methods
    • Disclaimer / IPO
    • Caching
    • Checklist after integration
  • Integration methods
    • On-Demand API
    • Synced API
    • MFN Loader
    • IFrame Widget
  • Wordpress Plugin
  • MFN Widgets
    • Report archive
    • Email Subscription Widget
    • Media collection
  • API
    • Feed
    • Model
      • Tags
    • Demo Data
    • WebSub
      • Endpoint
      • Subscribe (optional)
      • Ping Extension (optional)
      • Code samples
      • Misc
    • Archive
    • Email Subscription Guide
Powered by GitBook
On this page

Was this helpful?

  1. API

Demo Data

Only works before until the customer has sent their first real release

There is an inject endpoint that you can use to inject somewhat random press releases into the feed. Which can be used to simulate a press release going out.

We can also pre-fill the feed with a few years random of demo data. That also contains properly tagged Financial Reports.

Use cases

  • Feed is empty, since perhaps the customer is an IPO

  • Testing WebSub subscription

    • HTTP Posthooks

    • Wordpress Plugin Subscription

Inject Demo News Item

POST https://feed.mfn.se/demo/inject/:entity_id

You can inject demo News Items into your feed by posting to the following endpoint. Injects a somewhat random demo press release into the feed. Only works before until the customer has sent their first real release.

Path Parameters

Name
Type
Description

entity_id

string

Typically this has the same value as the primaryfeed_idin the API, but if you received multiple feed_id's only the main feed will be used for injecting demo news items.

Query Parameters

Name
Type
Description

type

string

Choose the type of the press release to inject [ ir | pr ]

lang

string

Choose language [ en | sv | fi ]

Command line example using curl

curl -X POST https://feed.mfn.se/demo/inject/fd51fb4d-e5dc-4390-a11c-0dfd1eafba22?lang=fi

To inject multiple press releases with the same groupe_id, add languages separeted with commas. Avalible languages are "en,sv,fi,no,zh,fr,de,da,pl,nl,lb,et,lv,lt,es"

Multiple press releases with the same group_id simulate when a company sends the same press release in different languages. This makes the releases receive the same groupe ID

curl -X POST https://feed.mfn.se/demo/inject/fd51fb4d-e5dc-4390-a11c-0dfd1eafba22?lang=en,sv
curl -X POST https://feed.mfn.se/demo/inject/fd51fb4d-e5dc-4390-ae44-01755b290b31/:regulatory:mar,sub:report:annual?type=ir&lang=sv
PreviousTagsNextWebSub

Last updated 5 months ago

Was this helpful?

See to know which one the available languages represent.

To specify tags and type for press releases to inject look at the following inject example. Two need to be specified and coma separated. "type" is a quary param and takes "ir"(investor relation) or "pr"(public relation) as an argument.

Language Codes
tags