evalventure / mrlock-frontend

MrLock247
Apache License 2.0
0 stars 1 forks source link

AWS Lambda Function URL to retrieve Facebook Reviews #6

Closed alexbrebu closed 2 years ago

alexbrebu commented 2 years ago

Endpoint to call: https://e4xwlli09l.execute-api.us-east-1.amazonaws.com/default/getBirminghamAutoLocksmithPageReviews

Expected format:

{
    "reviews": [
        {
            "created_time": "2021-11-26T21:07:53+0000",
            "recommendation_type": "positive",
            "review_text": "Brilliant service from Mr Lock, top guy. Have used a few times now and every time has done what’s needed efficiently and to a high standard, would highly recommend A+++ service."
        }
     ]
}
alexbrebu commented 2 years ago

@andreicatrina @alexandrumatei36

andreicatrina commented 2 years ago

error

Please enable CORS

alexbrebu commented 2 years ago

should be fine now

andreicatrina commented 2 years ago

Capture2

Can we add reviewer name and number of stars?

alexbrebu commented 2 years ago

Capture2

Can we add reviewer name and number of stars?

Sure. On it

alexbrebu commented 2 years ago

Unfortunately, I cannot retrieve those fields (reviewer_name or number_of_stars) at this moment through the API.

alexbrebu commented 2 years ago

Let's remove the name and the star rating from the design for the moment

alexbrebu commented 2 years ago
    {
        "created_time": "2021-11-26T21:07:53+0000",
        "review_text": "Brilliant service from Mr Lock, top guy. Have used it a few times now and every time has done what's needed efficiently and to a high standard, would highly recommend A+++ service.",
        "recommendation_type": "positive",
        "has_rating": true,
        "has_review": true,
        "author_name": "Sukhy Kaur Dyail",
        "author_profile_picture": "https://scontent-lhr8-1.xx.fbcdn.net/v/t39.30808-1/272852919_10166450285295554_4972013423905397992_n.jpg?stp=dst-jpg_p480x480&_nc_cat=109&ccb=1-5&_nc_sid=7206a8&_nc_eui2=AeEb4NHsqpCYBJQUVxWbe9yRb1yHQOCl90NvXIdA4KX3Q1Kx3l1WyPDewQ8V5wE1EaYqsiFC7arzDCZB-Eut6odV&_nc_ohc=cEBtP_EAaEAAX_oVY7D&_nc_ht=scontent-lhr8-1.xx&oh=00_AT91VpURuNoTsNXZSp-FrNOv4UjfCUHIeLmMHb5tBXbhbQ&oe=622ABBA2",
        "rating": 5
    }
alexbrebu commented 2 years ago

Structured updated. Author name, profile picture url and rating value are available

alexbrebu commented 2 years ago

@andreicatrina @alexandrumatei36