Api::V1::FeedsController API

Feeds

Get the feed

GET api/v1/feeds

Parameters

Name Description
token token
latitude Latitude
longitude Longitude
show_past_events True to include past events in the results
partners_only Boolean to get only partners
distance Distance from GPS coordinates from which actions and events should be found
announcements Insert announcements when equals to v1
page_token page token
before Find entourages created before a date, when no pagination is given
time_range Find entourages created in the last hours (default 24)

Request

Headers

Content-Type: application/json
Host: example.org
Cookie: 

Route

GET api/v1/feeds?token=foobar57&latitude=1.122&longitude=2.345&announcements=v1

Query Parameters

token: foobar57
latitude: 1.122
longitude: 2.345
announcements: v1

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET,POST,PUT,PATCH,DELETE
Access-Control-Allow-Headers: Origin,Accept,Content-Type,X-Requested-With,X-CSRF-Token,X-API-KEY
Content-Type: application/json; charset=utf-8
ETag: W/"4dc17ff325c1c2b2669eb560a2d04cc9"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: bd37fe44-9472-40a8-a908-8ab3ba62d3dd
X-Runtime: 0.042368
Content-Length: 783

Status

200 OK

Body

{
  "feeds": [
    {
      "type": "Entourage",
      "data": {
        "id": 24,
        "uuid": "erY5RLua2lFQ",
        "title": "Foobar",
        "group_type": "action",
        "entourage_type": "ask_for_help",
        "display_category": "social",
        "status": "open",
        "public": false,
        "metadata": {
          "city": "",
          "display_address": ""
        },
        "postal_code": null,
        "join_status": "not_requested",
        "number_of_unread_messages": 0,
        "number_of_people": 1,
        "created_at": "2022-06-02T13:16:43.791+02:00",
        "updated_at": "2022-06-02T13:16:43.791+02:00",
        "description": null,
        "share_url": "https://app.entourage.social/actions/erY5RLua2lFQ",
        "image_url": null,
        "online": false,
        "event_url": null,
        "display_report_prompt": false,
        "author": {
          "id": 60,
          "display_name": "John D.",
          "avatar_url": null,
          "partner": null,
          "partner_role_title": null
        },
        "location": {
          "latitude": 1.122,
          "longitude": 2.345
        }
      },
      "heatmap_size": 20
    }
  ],
  "unread_count": 0
}