Clash API

Testing Clash API

array(22) {
  ["tag"]=>
  string(9) "#L2C8PCVL"
  ["name"]=>
  string(12) "Brightblades"
  ["type"]=>
  string(10) "inviteOnly"
  ["description"]=>
  string(248) "ENGLISH ONLY. Keep chat clean. war prep starts M & F. Be active & donate. War is optional. If you're in war you must use both attacks! if you are super rushed we will not use you in war. elder is earned at leaders discretion by donations & activity"
  ["location"]=>
  array(3) {
    ["id"]=>
    int(32000006)
    ["name"]=>
    string(13) "International"
    ["isCountry"]=>
    bool(false)
  }
  ["badgeUrls"]=>
  array(3) {
    ["small"]=>
    string(93) "https://api-assets.clashofclans.com/badges/70/lh5138F8tqr755o4PEhvhwnDuJTw4x_eEYCbV9ZU56E.png"
    ["large"]=>
    string(94) "https://api-assets.clashofclans.com/badges/512/lh5138F8tqr755o4PEhvhwnDuJTw4x_eEYCbV9ZU56E.png"
    ["medium"]=>
    string(94) "https://api-assets.clashofclans.com/badges/200/lh5138F8tqr755o4PEhvhwnDuJTw4x_eEYCbV9ZU56E.png"
  }
  ["clanLevel"]=>
  int(14)
  ["clanPoints"]=>
  int(10398)
  ["clanVersusPoints"]=>
  int(13669)
  ["requiredTrophies"]=>
  int(1000)
  ["warFrequency"]=>
  string(19) "moreThanOncePerWeek"
  ["warWinStreak"]=>
  int(0)
  ["warWins"]=>
  int(210)
  ["warTies"]=>
  int(0)
  ["warLosses"]=>
  int(194)
  ["isWarLogPublic"]=>
  bool(true)
  ["warLeague"]=>
  array(2) {
    ["id"]=>
    int(48000012)
    ["name"]=>
    string(16) "Crystal League I"
  }
  ["members"]=>
  int(9)
  ["memberList"]=>
  array(9) {
    [0]=>
    array(11) {
      ["tag"]=>
      string(9) "#28YJ89GY"
      ["name"]=>
      string(7) "Shane W"
      ["role"]=>
      string(6) "leader"
      ["expLevel"]=>
      int(209)
      ["league"]=>
      array(3) {
        ["id"]=>
        int(29000000)
        ["name"]=>
        string(8) "Unranked"
        ["iconUrls"]=>
        array(2) {
          ["small"]=>
          string(94) "https://api-assets.clashofclans.com/leagues/72/e--YMyIexEQQhE4imLoJcwhYn6Uy8KqlgyY3_kFV6t4.png"
          ["tiny"]=>
          string(94) "https://api-assets.clashofclans.com/leagues/36/e--YMyIexEQQhE4imLoJcwhYn6Uy8KqlgyY3_kFV6t4.png"
        }
      }
      ["trophies"]=>
      int(3059)
      ["versusTrophies"]=>
      int(3943)
      ["clanRank"]=>
      int(1)
      ["previousClanRank"]=>
      int(1)
      ["donations"]=>
      int(0)
      ["donationsReceived"]=>
      int(77)
    }
    [1]=>
    array(11) {
      ["tag"]=>
      string(9) "#GQRRYRQY"
      ["name"]=>
      string(6) "osiris"
      ["role"]=>
      string(5) "admin"
      ["expLevel"]=>
      int(186)
      ["league"]=>
      array(3) {
        ["id"]=>
        int(29000000)
        ["name"]=>
        string(8) "Unranked"
        ["iconUrls"]=>
        array(2) {
          ["small"]=>
          string(94) "https://api-assets.clashofclans.com/leagues/72/e--YMyIexEQQhE4imLoJcwhYn6Uy8KqlgyY3_kFV6t4.png"
          ["tiny"]=>
          string(94) "https://api-assets.clashofclans.com/leagues/36/e--YMyIexEQQhE4imLoJcwhYn6Uy8KqlgyY3_kFV6t4.png"
        }
      }
      ["trophies"]=>
      int(2769)
      ["versusTrophies"]=>
      int(3723)
      ["clanRank"]=>
      int(2)
      ["previousClanRank"]=>
      int(2)
      ["donations"]=>
      int(77)
      ["donationsReceived"]=>
      int(0)
    }
    [2]=>
    array(11) {
      ["tag"]=>
      string(9) "#2V2PR9CU"
      ["name"]=>
      string(6) "dubs2u"
      ["role"]=>
      string(5) "admin"
      ["expLevel"]=>
      int(200)
      ["league"]=>
      array(3) {
        ["id"]=>
        int(29000000)
        ["name"]=>
        string(8) "Unranked"
        ["iconUrls"]=>
        array(2) {
          ["small"]=>
          string(94) "https://api-assets.clashofclans.com/leagues/72/e--YMyIexEQQhE4imLoJcwhYn6Uy8KqlgyY3_kFV6t4.png"
          ["tiny"]=>
          string(94) "https://api-assets.clashofclans.com/leagues/36/e--YMyIexEQQhE4imLoJcwhYn6Uy8KqlgyY3_kFV6t4.png"
        }
      }
      ["trophies"]=>
      int(2438)
      ["versusTrophies"]=>
      int(4359)
      ["clanRank"]=>
      int(3)
      ["previousClanRank"]=>
      int(3)
      ["donations"]=>
      int(0)
      ["donationsReceived"]=>
      int(0)
    }
    [3]=>
    array(11) {
      ["tag"]=>
      string(10) "#2898GUU9R"
      ["name"]=>
      string(11) "yellerknife"
      ["role"]=>
      string(8) "coLeader"
      ["expLevel"]=>
      int(173)
      ["league"]=>
      array(3) {
        ["id"]=>
        int(29000000)
        ["name"]=>
        string(8) "Unranked"
        ["iconUrls"]=>
        array(2) {
          ["small"]=>
          string(94) "https://api-assets.clashofclans.com/leagues/72/e--YMyIexEQQhE4imLoJcwhYn6Uy8KqlgyY3_kFV6t4.png"
          ["tiny"]=>
          string(94) "https://api-assets.clashofclans.com/leagues/36/e--YMyIexEQQhE4imLoJcwhYn6Uy8KqlgyY3_kFV6t4.png"
        }
      }
      ["trophies"]=>
      int(2326)
      ["versusTrophies"]=>
      int(3099)
      ["clanRank"]=>
      int(4)
      ["previousClanRank"]=>
      int(4)
      ["donations"]=>
      int(0)
      ["donationsReceived"]=>
      int(0)
    }
    [4]=>
    array(11) {
      ["tag"]=>
      string(10) "#2G02LUVLG"
      ["name"]=>
      string(5) "drano"
      ["role"]=>
      string(8) "coLeader"
      ["expLevel"]=>
      int(184)
      ["league"]=>
      array(3) {
        ["id"]=>
        int(29000000)
        ["name"]=>
        string(8) "Unranked"
        ["iconUrls"]=>
        array(2) {
          ["small"]=>
          string(94) "https://api-assets.clashofclans.com/leagues/72/e--YMyIexEQQhE4imLoJcwhYn6Uy8KqlgyY3_kFV6t4.png"
          ["tiny"]=>
          string(94) "https://api-assets.clashofclans.com/leagues/36/e--YMyIexEQQhE4imLoJcwhYn6Uy8KqlgyY3_kFV6t4.png"
        }
      }
      ["trophies"]=>
      int(2294)
      ["versusTrophies"]=>
      int(3516)
      ["clanRank"]=>
      int(5)
      ["previousClanRank"]=>
      int(5)
      ["donations"]=>
      int(0)
      ["donationsReceived"]=>
      int(0)
    }
    [5]=>
    array(11) {
      ["tag"]=>
      string(9) "#JRQL98JQ"
      ["name"]=>
      string(11) "little Bill"
      ["role"]=>
      string(6) "member"
      ["expLevel"]=>
      int(129)
      ["league"]=>
      array(3) {
        ["id"]=>
        int(29000000)
        ["name"]=>
        string(8) "Unranked"
        ["iconUrls"]=>
        array(2) {
          ["small"]=>
          string(94) "https://api-assets.clashofclans.com/leagues/72/e--YMyIexEQQhE4imLoJcwhYn6Uy8KqlgyY3_kFV6t4.png"
          ["tiny"]=>
          string(94) "https://api-assets.clashofclans.com/leagues/36/e--YMyIexEQQhE4imLoJcwhYn6Uy8KqlgyY3_kFV6t4.png"
        }
      }
      ["trophies"]=>
      int(2244)
      ["versusTrophies"]=>
      int(2100)
      ["clanRank"]=>
      int(6)
      ["previousClanRank"]=>
      int(6)
      ["donations"]=>
      int(0)
      ["donationsReceived"]=>
      int(0)
    }
    [6]=>
    array(11) {
      ["tag"]=>
      string(9) "#LU0C2QYQ"
      ["name"]=>
      string(5) "keiji"
      ["role"]=>
      string(6) "member"
      ["expLevel"]=>
      int(132)
      ["league"]=>
      array(3) {
        ["id"]=>
        int(29000010)
        ["name"]=>
        string(18) "Crystal League III"
        ["iconUrls"]=>
        array(3) {
          ["small"]=>
          string(94) "https://api-assets.clashofclans.com/leagues/72/Hyqco7bHh0Q81xB8mSF_ZhjKnKcTmJ9QEq9QGlsxiKE.png"
          ["tiny"]=>
          string(94) "https://api-assets.clashofclans.com/leagues/36/Hyqco7bHh0Q81xB8mSF_ZhjKnKcTmJ9QEq9QGlsxiKE.png"
          ["medium"]=>
          string(95) "https://api-assets.clashofclans.com/leagues/288/Hyqco7bHh0Q81xB8mSF_ZhjKnKcTmJ9QEq9QGlsxiKE.png"
        }
      }
      ["trophies"]=>
      int(2190)
      ["versusTrophies"]=>
      int(2189)
      ["clanRank"]=>
      int(7)
      ["previousClanRank"]=>
      int(7)
      ["donations"]=>
      int(0)
      ["donationsReceived"]=>
      int(0)
    }
    [7]=>
    array(11) {
      ["tag"]=>
      string(9) "#8P0J9UQ9"
      ["name"]=>
      string(15) "BoatyMcBoatface"
      ["role"]=>
      string(5) "admin"
      ["expLevel"]=>
      int(119)
      ["league"]=>
      array(3) {
        ["id"]=>
        int(29000000)
        ["name"]=>
        string(8) "Unranked"
        ["iconUrls"]=>
        array(2) {
          ["small"]=>
          string(94) "https://api-assets.clashofclans.com/leagues/72/e--YMyIexEQQhE4imLoJcwhYn6Uy8KqlgyY3_kFV6t4.png"
          ["tiny"]=>
          string(94) "https://api-assets.clashofclans.com/leagues/36/e--YMyIexEQQhE4imLoJcwhYn6Uy8KqlgyY3_kFV6t4.png"
        }
      }
      ["trophies"]=>
      int(1880)
      ["versusTrophies"]=>
      int(2069)
      ["clanRank"]=>
      int(8)
      ["previousClanRank"]=>
      int(8)
      ["donations"]=>
      int(0)
      ["donationsReceived"]=>
      int(0)
    }
    [8]=>
    array(11) {
      ["tag"]=>
      string(9) "#GYUC0UQQ"
      ["name"]=>
      string(13) "William Munny"
      ["role"]=>
      string(5) "admin"
      ["expLevel"]=>
      int(122)
      ["league"]=>
      array(3) {
        ["id"]=>
        int(29000000)
        ["name"]=>
        string(8) "Unranked"
        ["iconUrls"]=>
        array(2) {
          ["small"]=>
          string(94) "https://api-assets.clashofclans.com/leagues/72/e--YMyIexEQQhE4imLoJcwhYn6Uy8KqlgyY3_kFV6t4.png"
          ["tiny"]=>
          string(94) "https://api-assets.clashofclans.com/leagues/36/e--YMyIexEQQhE4imLoJcwhYn6Uy8KqlgyY3_kFV6t4.png"
        }
      }
      ["trophies"]=>
      int(1599)
      ["versusTrophies"]=>
      int(2347)
      ["clanRank"]=>
      int(9)
      ["previousClanRank"]=>
      int(9)
      ["donations"]=>
      int(0)
      ["donationsReceived"]=>
      int(0)
    }
  }
  ["labels"]=>
  array(3) {
    [0]=>
    array(3) {
      ["id"]=>
      int(56000000)
      ["name"]=>
      string(9) "Clan Wars"
      ["iconUrls"]=>
      array(2) {
        ["small"]=>
        string(93) "https://api-assets.clashofclans.com/labels/64/lXaIuoTlfoNOY5fKcQGeT57apz1KFWkN9-raxqIlMbE.png"
        ["medium"]=>
        string(94) "https://api-assets.clashofclans.com/labels/128/lXaIuoTlfoNOY5fKcQGeT57apz1KFWkN9-raxqIlMbE.png"
      }
    }
    [1]=>
    array(3) {
      ["id"]=>
      int(56000001)
      ["name"]=>
      string(15) "Clan War League"
      ["iconUrls"]=>
      array(2) {
        ["small"]=>
        string(93) "https://api-assets.clashofclans.com/labels/64/5w60_3bdtYUe9SM6rkxBRyV_8VvWw_jTlDS5ieU3IsI.png"
        ["medium"]=>
        string(94) "https://api-assets.clashofclans.com/labels/128/5w60_3bdtYUe9SM6rkxBRyV_8VvWw_jTlDS5ieU3IsI.png"
      }
    }
    [2]=>
    array(3) {
      ["id"]=>
      int(56000010)
      ["name"]=>
      string(8) "Friendly"
      ["iconUrls"]=>
      array(2) {
        ["small"]=>
        string(93) "https://api-assets.clashofclans.com/labels/64/hM7SHnN0x7syFa-s6fE7LzeO5yWG2sfFpZUHuzgMwQg.png"
        ["medium"]=>
        string(94) "https://api-assets.clashofclans.com/labels/128/hM7SHnN0x7syFa-s6fE7LzeO5yWG2sfFpZUHuzgMwQg.png"
      }
    }
  }
  ["requiredVersusTrophies"]=>
  int(0)
  ["requiredTownhallLevel"]=>
  int(1)
}






Most Recent War
array(3) {
  ["state"]=>
  string(8) "notInWar"
  ["clan"]=>
  array(5) {
    ["badgeUrls"]=>
    array(3) {
      ["small"]=>
      string(93) "https://api-assets.clashofclans.com/badges/70/H39b_-WLZGtZVWQ0hqTkE-Tn2AaQnQWy_Iz4yBlvL0M.png"
      ["large"]=>
      string(94) "https://api-assets.clashofclans.com/badges/512/H39b_-WLZGtZVWQ0hqTkE-Tn2AaQnQWy_Iz4yBlvL0M.png"
      ["medium"]=>
      string(94) "https://api-assets.clashofclans.com/badges/200/H39b_-WLZGtZVWQ0hqTkE-Tn2AaQnQWy_Iz4yBlvL0M.png"
    }
    ["clanLevel"]=>
    int(0)
    ["attacks"]=>
    int(0)
    ["stars"]=>
    int(0)
    ["destructionPercentage"]=>
    float(0)
  }
  ["opponent"]=>
  array(5) {
    ["badgeUrls"]=>
    array(3) {
      ["small"]=>
      string(93) "https://api-assets.clashofclans.com/badges/70/H39b_-WLZGtZVWQ0hqTkE-Tn2AaQnQWy_Iz4yBlvL0M.png"
      ["large"]=>
      string(94) "https://api-assets.clashofclans.com/badges/512/H39b_-WLZGtZVWQ0hqTkE-Tn2AaQnQWy_Iz4yBlvL0M.png"
      ["medium"]=>
      string(94) "https://api-assets.clashofclans.com/badges/200/H39b_-WLZGtZVWQ0hqTkE-Tn2AaQnQWy_Iz4yBlvL0M.png"
    }
    ["clanLevel"]=>
    int(0)
    ["attacks"]=>
    int(0)
    ["stars"]=>
    int(0)
    ["destructionPercentage"]=>
    float(0)
  }
}

Leave a Reply

Your email address will not be published. Required fields are marked *