Users
Name | Description |
---|---|
id | Either a user id or 'me' |
token | token |
Content-Type: application/json Host: example.org Cookie:
GET /api/v1/users/me?token=foobar184
token: foobar184
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/"d993a70fccdd83b923aa4abd6b4a4d3c" Cache-Control: max-age=0, private, must-revalidate X-Request-Id: f545da95-9b4c-411c-9562-67b6cd4b8481 X-Runtime: 0.017122 Content-Length: 881
200 OK
{ "user": { "id": 187, "display_name": "John D.", "first_name": "John", "last_name": "Doe", "roles": [ ], "about": null, "avatar_url": null, "user_type": "public", "partner": null, "engaged": false, "unread_count": 0, "permissions": { "outing": { "creation": false } }, "interests": [ ], "memberships": [ ], "conversation": { "uuid": "1_list_187" }, "anonymous": false, "uuid": "187", "feature_flags": { "organization_admin": false }, "token": "foobar184", "email": "user184@mail.com", "has_password": false, "firebase_properties": { "ActionZoneDep": "not_set", "ActionZoneCP": "not_set", "Goal": "no_set", "Interests": "none" }, "goal": null, "phone": "+33600000183", "travel_distance": 10, "birthday": null, "stats": { "tour_count": 0, "encounter_count": 0, "entourage_count": 0, "actions_count": 0, "ask_for_help_creation_count": 0, "contribution_creation_count": 0, "events_count": 0, "good_waves_participation": false }, "organization": null, "address": null, "address_2": null } }