@code.gov/code-gov-integrations1.1.1 • Public • Published
Small module to house Code.gov integrations with third party services.
How to use this module
All integrations found in the
libs folder are accesible when requiring this package.
const github = ;const githubClientParams =type: 'token'token: '[your-gh-token]';const client = githubgithub;
For more examples take a looks at our
How to add a module / integration
All you have to do is add a folder with an
index.js file that exports your integration's API. The folder name will the the name used to export the integration.
libs |- new_integration |- index.js
The included integration(s) export an object with a getData function. We recomend following the same pattern with your integrations.
Contributing integrations to this module must follow the pattern mentioned for it to be considered for inclusion.