1.0.15 • Published 2 years ago
@feedbackfarm/core v1.0.15
@feedbackfarm/core
Feedback.farm core api
This small package allow you to call the Feedback.farm api from your custom UI.
Demos
Usage
Create a project on the feedback.farm platform and then grab the project id.
npm install @feedbackfarm/core
Insert the following snippet
// index.jsx
import { seendFeedback } from "@feedbackfarm/core";
async function handleSubmitFeedback() {
const result = await sendFeedback(
projectId,
feedbackText,
type,
identifier,
pageName
);
}
Parameters
Parameters | Type | Description | Required |
---|---|---|---|
projectId | string | Project identifier available on feedback.farm platform | ✅ |
feedbackText | string | User feedback | ✅ |
type | BUG ; FEATURE ; OTHER | Feedback type | ✅ |
identifier | string | User identifier (email, id, ...) | |
pageName | string | Page name / page url | |
logs | Log[] | Logs |
Full documentation