Skip to content

Quickstart

Terminal window
pip install MagicFeedback

Import MagicFeedback and pass your account credentials. The constructor authenticates immediately and stores the bearer token for all subsequent requests.

from magicfeedback_sdk import MagicFeedback
client = MagicFeedback(
user="you@example.com",
password="your-password",
)

List the products registered under your account:

products = client.products.get()
for product in products:
print(product["id"], product["name"])
feedback = client.feedbacks.create({
"name": "First submission",
"type": "APP",
"identity": "MAGICFORM",
"answers": [
{"key": "rating", "value": "5"},
{"key": "comment", "value": "Works great!"},
],
"integrationId": "<your-integration-id>",
"companyId": "<your-company-id>",
"productId": "<your-product-id>",
})
print(feedback["id"])