Post.order(likes_count: :desc).preload(:user).map(&:email).uniq.first(5)
Am assuming the email is unique to every user
Controller
{ | |
"event_id": "01EFF9JWR37JH5CM9C116RWAK5", | |
"event_type": "form_response", | |
"form_response": { | |
"form_id": "dEhLsDuN", | |
"token": "f2cenm41cbmqplmumal4nf2cenm3yom8", | |
"landed_at": "2020-08-11T17:03:03Z", | |
"submitted_at": "2020-08-11T17:37:44Z", | |
"hidden": { | |
"car_id": "f91e0491-9d7a-4b7f-abb2-4c9b795155e6", |
Main endpoint is http://35.179.92.187/
Request:
Method: Get