1.1.0 • Published 7 months ago

ministryplatform-fetch v1.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

MPFetch

Fetch data from the customwidget API from anywhere!

Install

npm install ministryplatform-fetch

Usage

import { MPFetch } from 'ministryplatform-fetch';

const response = await MPFetch.getData({
    host: 'hostname', // API hostname
    storedProc: 'api_custom_STORED_PROC', // Name of the stored procedure in MinistryPlatform
    params: '@CUSTOMPARAM=1', // Optional, Any parameters used by the stored proc
    requireUser: false, // Optional, Set to true to send user data to the stored proc
});

response.data; // The data returned from the stored procedure
response.error; // The error returned from the stored procedure
1.1.0

7 months ago

1.0.0

7 months ago

0.0.3

8 months ago

0.0.2

9 months ago

0.0.1

9 months ago