@swydo/custom-integrations

1.0.274 • Public • Published

custom-integrations

GitHubActions Coverage npm node conventionalCommits GitHub Gitter

Github Header



Swydo custom integrations enables any online platform to connect to Swydo. Join us on Gitter.



Get started

To get started with building custom integrations for the Swydo platform we recommend going through the following steps to get accustomed to the terminology and workflow.

Next: Adapt and connect your data.

References: Detailed references to explore all possibilities.

Quick start

The supported Node.js version is 12.x LTS.

Install

npm install @swydo/custom-integrations

Create your adapter configuration

Have a look at the Adapter configuration specification for all options and possibilities.

src/adapter.js

const adapter = {
    id: 'my-custom-integration',
    authentication: {
        // Your authentication method
    },
    endpoints: [
        // Your endpoints.
    ],
};

module.exports = {
    adapter,
};

Export your custom integration

src/index.js

const { buildCustomIntegration } = require('@swydo/custom-integrations');
const config = require('./adapter');

const customIntegration = buildCustomIntegration(config);

module.exports = {
    customIntegration,
};

Your module defines the file the custom integration is exported from (the entrypoint) as "main" in your package.json file.

package.json

{
    "name": "my-swydo-integration",
    "version": "0.0.1",
    "main": "src/index.js",
    "dependencies": {
        "@swydo/custom-integrations ": "latest"
    }
}

Learn more about package.json on npmjs.com.

Example implementation

A complete custom integration example integrating the Star Wars API can be found here: github.com/Swydo/star-wars-integration

Readme

Keywords

Package Sidebar

Install

npm i @swydo/custom-integrations

Weekly Downloads

1

Version

1.0.274

License

MIT

Unpacked Size

164 kB

Total Files

53

Last publish

Collaborators

  • swybot