App development
Create new apps and fork existing ones in Middle's developer portal
Last updated
Create new apps and fork existing ones in Middle's developer portal
Last updated
Apps allow you to sync records and perform actions. ENTERPRISE customers can create and edit apps all within Middle's developer dashboard. Since all Middle integration code is open-sourced, you are able to review the code powering your Middle instance's apps. All apps are coded in Python.
Apps are managed on an instance-by-instance basis. That means that if you add an app to your Middle installation it will only be visible to you unless you'd like it to be publicly available to others.
To access your instance’s apps, click the Apps tab.
This tab will show all installed apps that currently exist in your Middle instance. This dashboard will also allow you to create or upload an app.
There are four main elements to a Middle app:
Authentication defines what's needed for an app to work and gain authorization to access the systems you are integrating with
Record types are data synced into Middle, I.E. Middle's inputs
Actions are typically Middle's "Outputs": how data flows out of Middle
Code packages are referencable by your record sync and action code to open libraries, use functions, etc., and not have to repeatedly embed this in your code
There are seven steps to building a new app:
Create a new app
Configure app settings
Configure authentication (authorization)
Create record types and poll syncs (inputs)
Create actions (outputs)
(Optional) upload code packages or helper functions
Test your app
To integrate with a system that is not already available on the platform, you must create a new app on your Middle instance.
To create a new app, click + Create an app in your app portal.
This will create a new app and bring you to the new app's dashboard.
Once your app is in use, this dashboard will begin to report metrics about worker queues and sync attempts. It will also contain a Download button to download a zipped JSON copy of your app, which can be generated using the Regenerate button.
First, you will need to configure the app’s settings.
If you plan to make your new app public, it is important for people to understand the purpose of the app, the system it's integrating to, and any important notes for developers who may need to work with the app in the future.
To configure your app's settings, click Settings from the left-hand navigation menu.
There are two levels of app visibility: hidden, and public. Turning this toggle on will make this app visible for Accounts to connect to.
You will also be able to name your app, provide app descriptions, and add any important notes about the platform you are integrating with. Here's an example of what these fields could look like for our new app: "CoolNewApp."
Once you have filled out your app's settings, click Save.