UNPKG

@memori.ai/memori-api-client

Version:

React library to integrate a Memori in your app or website

15 lines 596 B
import { apiFetcher } from '../apiFetcher'; export default (apiUrl) => ({ analyzeUserQuery: async (authToken, memoriID, params) => apiFetcher(`/Analysis/AnalyzeUserQuery/${authToken}/${memoriID}`, { apiUrl, method: 'POST', body: { ...params, }, }), getUserQueryMatches: async (authToken, analysisID, from, howMany, threshold) => apiFetcher(`/Analysis/UserQueryMatches/${authToken}/${analysisID}/${from}/${howMany}${threshold ? `/${threshold}` : ''}`, { apiUrl, method: 'GET', }), }); //# sourceMappingURL=analysis.js.map