Last active
May 13, 2022 08:30
-
-
Save aldrienht/2cf8c97ff5643e2ed6834cb45954f1cb to your computer and use it in GitHub Desktop.
Get Reviews from JudgeMe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install JudgeMe app | |
# Get Judge.me API crendentials as below: | |
private_token = "b_UmJknnxEONTwVDs-E2ARZtVzA | |
shop_domain = "msg-app-store.myshopify.com" | |
RestClient.get( | |
"https://judge.me/api/v1/reviews", | |
params: { | |
api_token: private_token, | |
shop_domain: shop_domain | |
} | |
).body | |
Result: | |
{ | |
"current_page": 1, | |
"per_page": 10, | |
"reviews": [{ | |
"id": 309836503, | |
"title": "This is a great Addidas shoe", | |
"body": "Pretty good, great buy!", | |
"rating": 5, | |
"product_external_id": 5280573096092, | |
"reviewer": { | |
"id": 194677611, | |
"external_id": 2861585334295, | |
"email": "[email protected]", | |
"name": "aldrien", | |
"phone": null, | |
"accepts_marketing": true, | |
"unsubscribed_at": null, | |
"tags": null | |
}, | |
"source": "web", | |
"curated": "not-yet", | |
"hidden": false, | |
"verified": "nothing", | |
"featured": false, | |
"created_at": "2022-05-12T04:38:32+00:00", | |
"updated_at": "2022-05-12T04:39:15+00:00", | |
"pictures": [{ | |
"urls": { | |
"original": "https://judgeme.imgix.net/msg-app-store/1652330312__star__original.png?auto=format", | |
"small": "https://judgeme.imgix.net/msg-app-store/1652330312__star__original.png?auto=format\\u0026w=100", | |
"compact": "https://judgeme.imgix.net/msg-app-store/1652330312__star__original.png?auto=format\\u0026w=160", | |
"huge": "https://judgeme.imgix.net/msg-app-store/1652330312__star__original.png?auto=format\\u0026w=1024" | |
}, | |
"hidden": false | |
}], | |
"ip_address": "112.209.96.35", | |
"product_title": "Addidas Shoes x2", | |
"product_handle": "addidas-shoes-x2" | |
}] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment