RoyaleAPI / cr-api

Clash Royale Analytics, Profiles and Insights. We no longer publish a public API. Please use the official API from Supercell.
https://RoyaleAPI.com
166 stars 20 forks source link

trophyChange field missing in v3 player battles endpoint #469

Closed DallasHoff closed 4 years ago

DallasHoff commented 4 years ago

In v3, the player battles endpoint is missing the trophyChange field (response[x].team[x].trophyChange and response[x].opponent[x].trophyChange) that was present in v2.

Request Details:

GET https://api-v3.royaleapi.com/player/QUUYUP/battles

Response Details:

Code: 200
[
  {
    "type": "PvP",
    "utcTime": "2019-09-02T03:49:10Z",
    "deckType": "collection",
    "winCountBefore": 0,
    "teamSize": 1,
    "winner": 2,
    "teamCrowns": 2,
    "opponentCrowns": 0,
    "arena": {
      "id": 0,
      "name": "Shipwreck Island",
      "arena": "Shipwreck Island",
      "trophyLimit": 7000
    },
    "mode": {...},
    "team": [
      {
        "tag": "QUUYUP",
        "name": "King Dragonhoff",
        "crownsEarned": 2,
        "startTrophies": 5277,
        "trophyChange": 30, // *** Not present ***
        "clan": {
          "tag": "9UU02",
          "name": "Centum United",
          "badge": {
            "id": 16000013,
            "name": "Crown_02",
            "category": "01_Symbol",
            "image": "https://royaleapi.github.io/cr-api-assets/badges/Crown_02.png"
          }
        },
        "deckLink": "https://link.clashroyale.com/deck/en?deck=26000004;28000009;28000011;26000046;26000036;26000014;26000005;26000041",
        "deck": [...]
      }
    ],
    "opponent": [
      {
        "tag": "LPQJC2CC",
        "name": "1111",
        "crownsEarned": 0,
        "startTrophies": 5278,
        "trophyChange": -20, // *** Not present ***
        "clan": {
          "tag": "8JGRQV2C",
          "name": "神奇侠士",
          "badge": {
            "id": 16000010,
            "name": "Bolt_03",
            "category": "01_Symbol",
            "image": "https://royaleapi.github.io/cr-api-assets/badges/Bolt_03.png"
          }
        },
        "deckLink": "https://link.clashroyale.com/deck/en?deck=27000010;26000004;28000000;26000022;26000042;26000026;26000017;28000013",
        "deck": [...]
      }
    ]
  },
  ...
]
selfish commented 4 years ago

Thanks for the report, will be fixed in an upcoming version

selfish commented 4 years ago

Implemented in v121

selfish commented 4 years ago

Deploying now.