USER

GET

- GET /user/me - Get user

return: (200) User object | (4xx-5xx) Error json

Data result:

{
    "id": "8a766142-be00-4661-abeb-a9e3e912dc05",
    "role": "USER",
    "twitter_id": "249718145",
    "twitelo_token": "d39e249718145-ef796426c7ed0134e7814af15c3f761c4234f8c732h044c655296862e0c445c58a10fb",
    "api_key": "7d7e249718145-ac3c3ef796426c7ed0134e7835312be2e542h044c65529686ccbdaf5789a180a",
    "tokens": "eyJ0ODE0NS03bGciOiJm5RYkVuRyd2hrbVEyUj9.fyJ0b2tlbiI6IjI0OTcxODE0NS03bGciOiJm5RYkVeXAbiI6IjI0OTCJhbGciOiJI4NGRyjA1OUJtTU5wIiwidG9rZW5TZWNyZXQiOiJVyx_iqIh_WwqQeX04Jd2lZ1ljQ2pnMnZWc3k5VnJLcFNRSzhCcHMybU82TTBEaGgiLCJpZCI6IjI0OTcxODE0NSJ9.JiFOEVyx_iqIh_WwqQeX04JdvFZjfaNuJOFlSd9E1tk",
    "username": "iFonny_",
    "name": "Nico hihihi 🔥 🔥",
    "protected": false,
    "verified": false,
    "followers": 4331,
    "lang": "fr",
    "profile_image_url": "http: //pbs.twimg.com/profile_images/963649016004272129/VhbWWXT__400x400.jp",
    "description": "Nico - 21 ans - Update ta bio automatiquement en fonction de ton rank LoL avec https://t.co/ZrNFzfmBEH",
    "switch": false,
    "freshUser": false,
    "disabled": 0,
    "settings": {
        "locale": "fr",
        "notifications": {
            "mp_twitter": false
        },
        "pp_trigger": false
    },
    "twitelo": {
        "description": {
            "content": "Nico - 21 ans - Update ta bio automatiquement en fonction de ton rank LoL avec https://t.co/ZrNFzfmBEH",
            "status": false
        },
        "location": {
            "content": "North Korea",
            "status": false
        },
        "name": {
            "content": "Nico hihihi 🔥 🔥",
            "status": false
        }
    },
    "created": 1519639337231,
    "updated": 1519639337231,
}

- GET /user/me/update - get updated user (with twitter)

return: (200) User object | (4xx-5xx) Error json

Data result:

{
    "id": "8a766142-be00-4661-abeb-a9e3e912dc05",
    "role": "USER",
    "twitter_id": "249718145",
    "twitelo_token": "d39e249718145-ef796426c7ed0134e7814af15c3f761c4234f8c732h044c655296862e0c445c58a10fb",
    "api_key": "7d7e249718145-ac3c3ef796426c7ed0134e7835312be2e542h044c65529686ccbdaf5789a180a",
    "tokens": "eyJ0ODE0NS03bGciOiJm5RYkVuRyd2hrbVEyUj9.fyJ0b2tlbiI6IjI0OTcxODE0NS03bGciOiJm5RYkVeXAbiI6IjI0OTCJhbGciOiJI4NGRyjA1OUJtTU5wIiwidG9rZW5TZWNyZXQiOiJVyx_iqIh_WwqQeX04Jd2lZ1ljQ2pnMnZWc3k5VnJLcFNRSzhCcHMybU82TTBEaGgiLCJpZCI6IjI0OTcxODE0NSJ9.JiFOEVyx_iqIh_WwqQeX04JdvFZjfaNuJOFlSd9E1tk",
    "username": "iFonny_",
    "name": "Nico hihihi 🔥 🔥",
    "protected": false,
    "verified": false,
    "followers": 4331,
    "lang": "fr",
    "profile_image_url": "http: //pbs.twimg.com/profile_images/963649016004272129/VhbWWXT__400x400.jp",
    "description": "Nico - 21 ans - Update ta bio automatiquement en fonction de ton rank LoL avec https://t.co/ZrNFzfmBEH",
    "switch": false,
    "freshUser": false,
    "disabled": 0,
    "settings": {
        "locale": "fr",
        "notifications": {
            "mp_twitter": false
        },
        "pp_trigger": false
    },
    "twitelo": {
        "description": {
            "content": "Nico - 21 ans - Update ta bio automatiquement en fonction de ton rank LoL avec https://t.co/ZrNFzfmBEH",
            "status": false
        },
        "location": {
            "content": "North Korea",
            "status": false
        },
        "name": {
            "content": "Nico hihihi 🔥 🔥",
            "status": false
        }
    },
    "created": 1519639337231,
    "updated": 1519639337231,
}

- GET /user/me/welcome - Say welcome user and get stats

return: (200) User object | (4xx-5xx) Error json

Data result:

{
    "username": "iFonny_",
    "pp": "http://pbs.twimg.com/profile_images/963649016004272129/VhbWWXT__400x400.jpg",
    "count": {
      "all": 1,
      "active": 1
    },
    "join": true
}

POST

- POST /user/me/save/profile - Save twitelo profile

data:

  • name: Twitelo name (with UUID tags) - type: STRING

  • description: Twitelo description (with UUID tags) - type: STRING

  • location: Twitelo location (with UUID tags) - type: STRING

return: (200) twitelo preview | (4xx-5xx) Error json

Data result:

{
    "name": "Name <{iFonny}>",
    "description": "Description <{Diamond}>",
    "location": "Location <{Diamond}>"
}

- POST /user/me/preview - Get profile preview

data:

  • name: Twitelo name (with UUID tags) - type: STRING

  • description: Twitelo description (with UUID tags) - type: STRING

  • location: Twitelo location (with UUID tags) - type: STRING

return: (200) twitelo preview | (4xx-5xx) Error json

Data result:

{
    "name": "Name <{iFonny}>",
    "description": "Description <{Diamond}>",
    "location": "Location <{Diamond}>"
}

DELETE

- DELETE /user/me/delete - Delete user and content

return: (200) true | (4xx-5xx) Error json

Data result:

true

NOAUTH

- GET /user/latest - Get latest active users

return: (200) Array of twitter users | (4xx-5xx) Error json

Data result:

[
    {
      "twitter_id": "941026327",
      "username": "_Niicoo_",
      "name": "Nicoreo ❤",
      "profile_image_url": "http://pbs.twimg.com/profile_images/378800000487040957/3f3bf7b41114f72116470342dda0ae78_normal.jpeg"
    },
    {
      "twitter_id": "249718145",
      "username": "iFonny_",
      "name": "Nico hihihi 🔥 🔥",
      "profile_image_url": "http://pbs.twimg.com/profile_images/963649016004272129/VhbWWXT__normal.jpg"
    }
]

ADMIN

- [PAS TOUT DE SUITE] GET /user/id/:id - Get user
- [PAS TOUT DE SUITE] GET /user/id/:id/update - Update twitter profile and get user
- [PAS TOUT DE SUITE] POST /user/id/:id/edit - Edit user

results matching ""

    No results matching ""