UNPKG

@memori.ai/memori-api-client

Version:

React library to integrate a Memori in your app or website

24 lines 1.03 kB
import { apiFetcher } from '../apiFetcher'; export default (apiUrl) => ({ createTrustedApplication: (authToken, trustedApplication) => apiFetcher(`/TrustedApplication/${authToken}`, { apiUrl, body: trustedApplication, method: 'POST', }), getTrustedApplication: (authToken, trustedApplicationID) => apiFetcher(`/TrustedApplication/${authToken}/${trustedApplicationID}`, { apiUrl, }), updateTrustedApplication: (authToken, trustedApplicationID, trustedApplication) => apiFetcher(`/TrustedApplication/${authToken}/${trustedApplicationID}`, { apiUrl, method: 'PATCH', body: trustedApplication, }), deleteTrustedApplication: (authToken, trustedApplicationID) => apiFetcher(`/TrustedApplication/${authToken}/${trustedApplicationID}`, { apiUrl, method: 'DELETE', }), getTrustedApplicationsList: (authToken) => apiFetcher(`/TrustedApplications/${authToken}`, { apiUrl, }), }); //# sourceMappingURL=trustedApplication.js.map