Working in the B2B space is a bit different from working directly with end users in many ways. One of the biggest differences for a developer at Modular Finance is that we work close together with customer IR departments and digital agencies. Since we’re a data provider, most of the systems at Modular Finance have direct APIs and/or specific components that can be integrated inside customers’ systems.
These integrations vary a lot depending on specific customer use cases or requests and can range from news feeds from MFN and stock chart widgets from Datablocks to raw streaming data feeds from Dataflow.
As a result we try to develop our APIs and widgets as simple as possible but at the same time allowing customization where desired.
Anyone having developed APIs for external use would surely agree that designing a good API is always harder in practice than what one might have thought at first glance. Since users of an API will have different backgrounds and vastly different technichal skill, it’s a challenge to unify all requirements with one tool. At Modular Finance we have a couple of cornerstones for API and integration design to make this process a bit easier.
There are a couple of ways to integrate these widgets. I’m a fan of the “JS-loader” approach, which also happens to be how the subscribe widget is integrated. Here’s the code for that:
And that’s all!
This is arguably somewhat of an unconventional approach to loading widgets, patching the
window object and dynamically loading scripts, but the example is concise and quite “copy-paste:able” which is a big plus for certain users. The generated subscription-element (
#my-subscription-widget) can now also be styled and treated just like any other part of the page.
Integration APIs and widgets are typically reserved for customers. If you want to know more about Datablocks or how to work with the integration toolbox don’t hesitate to contact us!