USER

GET

- GET /account/me/all - Get all accounts

return: (200) array of accounts | (4xx-5xx) Error json

Data result:

[
    {

      "created": 1522567393070,
      "game_id": "lol",
      "id": "3866ea33-08b8-4d62-b310-c4f488a40ee1",
      "included": false,
      "settings": {
        "region": "euw",
        "username": "iFonny"
      },
      "game_account_info": {
        "account_id": "8fqSAx6veh0g6paaP_mMtBCaE_Ae5ijAcBE_Q6tXwp7FSA",
        "puuid": "uSNpdartPQ8HIT_KhJTutWJxXzXYLgn2KQTTzDknruVZM5rz8KXmy2WePsdsuj8DhFJ-p5mpQM4z9w",
        "region": "euw",
        "summoner_id": "Y-ZlcXwYKQmX8Wbrb6atVYffDmdWNx5ZKGg8AtsT5Oy_7cg"
      },
      "user_id": "05e9ac42-b2db-4858-af6b-b5dda3710e7f",
      "verified": false
    },
    {
      "created": 1522567453943,
      "game_id": "speedrun",
      "id": "3d1c1e01-4e55-4713-9833-87a44f74bf93",
      "included": true,
      "settings": {
        "username": "ifonny"
      },
      "game_account_info": {
        "id": "zxzz459x"
      },
      "user_id": "05e9ac42-b2db-4858-af6b-b5dda3710e7f",
      "verified": false
    }
]

- GET /account/me/:id - Get account by id

url:

  • id: account ID - type: STRING

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

Data result:

{
    "created": 1522567393070,
    "game_id": "lol",
    "id": "3866ea33-08b8-4d62-b310-c4f488a40ee1",
    "included": false,
    "settings": {
      "region": "na",
      "username": "ifonny"
    },
    "game_account_info": {
        "account_id": "8fqSAx6veh0g6paaP_mMtBCaE_Ae5ijAcBE_Q6tXwp7FSA",
        "puuid": "uSNpdartPQ8HIT_KhJTutWJxXzXYLgn2KQTTzDknruVZM5rz8KXmy2WePsdsuj8DhFJ-p5mpQM4z9w",
        "region": "euw",
        "summoner_id": "Y-ZlcXwYKQmX8Wbrb6atVYffDmdWNx5ZKGg8AtsT5Oy_7cg"
      },
    "user_id": "05e9ac42-b2db-4858-af6b-b5dda3710e7f",
    "verified": false
}

PUT

- PUT /account/me/create - Create an account

data:

  • game_id: game ID - type: STRING
  • settings: settings object (types: 'string', 'boolean', 'number') - type: OBJECT

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

Data result:

{
    "created": 1522562390558,
    "game_id": "lol",
    "id": "7df1c349-9086-4092-b6ff-12505346843a",
    "included": false,
    "settings": {
      "region": "euw",
      "username": "iFonny"
    },
    "game_account_info": {
        "account_id": "8fqSAx6veh0g6paaP_mMtBCaE_Ae5ijAcBE_Q6tXwp7FSA",
        "puuid": "uSNpdartPQ8HIT_KhJTutWJxXzXYLgn2KQTTzDknruVZM5rz8KXmy2WePsdsuj8DhFJ-p5mpQM4z9w",
        "region": "euw",
        "summoner_id": "Y-ZlcXwYKQmX8Wbrb6atVYffDmdWNx5ZKGg8AtsT5Oy_7cg"
      },
    "user_id": "05e9ac42-b2db-4858-af6b-b5dda3710e7f",
    "verified": false
}

POST

- POST /account/me/:id/edit - Edit account settings

url:

  • id: account ID - type: STRING

data:

  • game_id: game ID - type: STRING

  • settings: settings object (types: 'string', 'boolean', 'number') - type: OBJECT

return:(200) account object or false (if unchanged) | (4xx-5xx) Error json

Data result:

{
    "created": 1522562390558,
    "game_id": "lol",
    "id": "7df1c349-9086-4092-b6ff-12505346843a",
    "included": false,
    "settings": {
      "region": "euw",
      "username": "iFonny"
    },
    "game_account_info": {
        "account_id": "8fqSAx6veh0g6paaP_mMtBCaE_Ae5ijAcBE_Q6tXwp7FSA",
        "puuid": "uSNpdartPQ8HIT_KhJTutWJxXzXYLgn2KQTTzDknruVZM5rz8KXmy2WePsdsuj8DhFJ-p5mpQM4z9w",
        "region": "euw",
        "summoner_id": "Y-ZlcXwYKQmX8Wbrb6atVYffDmdWNx5ZKGg8AtsT5Oy_7cg"
      },
    "user_id": "05e9ac42-b2db-4858-af6b-b5dda3710e7f",
    "verified": false
}

DELETE

- DELETE /account/me/:id/delete - Delete an account (with linked tags)

url:

  • id: account ID - type: STRING

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

Data result:

true

results matching ""

    No results matching ""