Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/browser-sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ Feedback can be submitted to Bucket using the SDK:

```ts
bucketClient.feedback({
featureId: "my_feature_id", // String (required), copy from Feature feedback tab
featureKey: "my-feature-key", // String (required), copy from Feature feedback tab
score: 5, // Number: 1-5 (optional)
comment: "Absolutely stellar work!", // String (optional)
});
Expand All @@ -292,7 +292,7 @@ bucketClient.feedback({

If you are not using the Bucket Browser SDK, you can still submit feedback using the HTTP API.

See details in [Feedback HTTP API](https://docs.bucket.co/reference/http-tracking-api#feedback)
See details in [Feedback HTTP API](https://docs.bucket.co/api/http-api#post-feedback)

## Tracking feature usage

Expand Down
6 changes: 1 addition & 5 deletions packages/react-sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -347,13 +347,9 @@ function CustomFeedbackForm() {

const handleSubmit = async (data: FormData) => {
await sendFeedback({
featureId: "bucket-feature-id",
featureKey: "bucket-feature-key",
score: parseInt(data.get("score") as string),
comment: data.get("comment") as string,
metadata: {
source: "custom-form",
userRole: "admin",
},
});
};

Expand Down
6 changes: 1 addition & 5 deletions packages/vue-sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,13 +280,9 @@ const sendFeedback = useSendFeedback();

const handleSubmit = async (data: FormData) => {
await sendFeedback({
featureId: "bucket-feature-id",
featureKey: "bucket-feature-key",
score: parseInt(data.get("score") as string),
comment: data.get("comment") as string,
metadata: {
source: "custom-form",
userRole: "admin",
},
});
};
</script>
Expand Down