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
167 stars 20 forks source link

GET https://api.royaleapi.com/clan/<TAG>/battles?type=war returns all battle types #344

Closed jykntr closed 6 years ago

jykntr commented 6 years ago

Request Details:

GET https://api.royaleapi.com/clan/<TAG>/battles?type=war

Response Details:

Code: 200
[
    {
        "type": "PvP",
        ...
    {
        "type": "clanWarCollectionDay",
        ...
    }
    {
        "type": "2v2",
        ...
    }
    {
        "type": "clanWarWarDay",
        ...
    }
    ...
]

Issue Report:

  1. Did you encounter this recently, or has this bug always been there?

I first saw this starting on 5/25, and has continued since. It could have actually started a day or so earlier.

  1. Expected behaviour:

Filter battle types so that they only include clanWarCollectionDay and clanWarWarDay types.

  1. Console logs (if applicable):
  2. Screenshots (if applicable):
fourjr commented 6 years ago

339