Clash API

Testing Clash API

array(20) {
  ["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(11733)
  ["clanVersusPoints"]=>
  int(14854)
  ["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(10)
  ["memberList"]=>
  array(10) {
    [0]=>
    array(11) {
      ["tag"]=>
      string(9) "#28YJ89GY"
      ["name"]=>
      string(7) "Shane W"
      ["role"]=>
      string(6) "leader"
      ["expLevel"]=>
      int(208)
      ["league"]=>
      array(3) {
        ["id"]=>
        int(29000016)
        ["name"]=>
        string(19) "Champion League III"
        ["iconUrls"]=>
        array(3) {
          ["small"]=>
          string(94) "https://api-assets.clashofclans.com/leagues/72/JmmTbspV86xBigM7OP5_SjsEDPuE7oXjZC9aOy8xO3s.png"
          ["tiny"]=>
          string(94) "https://api-assets.clashofclans.com/leagues/36/JmmTbspV86xBigM7OP5_SjsEDPuE7oXjZC9aOy8xO3s.png"
          ["medium"]=>
          string(95) "https://api-assets.clashofclans.com/leagues/288/JmmTbspV86xBigM7OP5_SjsEDPuE7oXjZC9aOy8xO3s.png"
        }
      }
      ["trophies"]=>
      int(3391)
      ["versusTrophies"]=>
      int(3943)
      ["clanRank"]=>
      int(1)
      ["previousClanRank"]=>
      int(1)
      ["donations"]=>
      int(35)
      ["donationsReceived"]=>
      int(168)
    }
    [1]=>
    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(2948)
      ["versusTrophies"]=>
      int(3516)
      ["clanRank"]=>
      int(2)
      ["previousClanRank"]=>
      int(2)
      ["donations"]=>
      int(0)
      ["donationsReceived"]=>
      int(0)
    }
    [2]=>
    array(11) {
      ["tag"]=>
      string(10) "#2898GUU9R"
      ["name"]=>
      string(11) "yellerknife"
      ["role"]=>
      string(8) "coLeader"
      ["expLevel"]=>
      int(172)
      ["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(2786)
      ["versusTrophies"]=>
      int(3159)
      ["clanRank"]=>
      int(3)
      ["previousClanRank"]=>
      int(3)
      ["donations"]=>
      int(126)
      ["donationsReceived"]=>
      int(35)
    }
    [3]=>
    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(2395)
      ["versusTrophies"]=>
      int(4359)
      ["clanRank"]=>
      int(4)
      ["previousClanRank"]=>
      int(4)
      ["donations"]=>
      int(0)
      ["donationsReceived"]=>
      int(0)
    }
    [4]=>
    array(11) {
      ["tag"]=>
      string(9) "#GQRRYRQY"
      ["name"]=>
      string(6) "osiris"
      ["role"]=>
      string(5) "admin"
      ["expLevel"]=>
      int(181)
      ["league"]=>
      array(3) {
        ["id"]=>
        int(29000011)
        ["name"]=>
        string(17) "Crystal League II"
        ["iconUrls"]=>
        array(3) {
          ["small"]=>
          string(94) "https://api-assets.clashofclans.com/leagues/72/jhP36EhAA9n1ADafdQtCP-ztEAQjoRpY7cT8sU7SW8A.png"
          ["tiny"]=>
          string(94) "https://api-assets.clashofclans.com/leagues/36/jhP36EhAA9n1ADafdQtCP-ztEAQjoRpY7cT8sU7SW8A.png"
          ["medium"]=>
          string(95) "https://api-assets.clashofclans.com/leagues/288/jhP36EhAA9n1ADafdQtCP-ztEAQjoRpY7cT8sU7SW8A.png"
        }
      }
      ["trophies"]=>
      int(2352)
      ["versusTrophies"]=>
      int(3595)
      ["clanRank"]=>
      int(5)
      ["previousClanRank"]=>
      int(5)
      ["donations"]=>
      int(139)
      ["donationsReceived"]=>
      int(0)
    }
    [5]=>
    array(11) {
      ["tag"]=>
      string(9) "#LU0C2QYQ"
      ["name"]=>
      string(5) "keiji"
      ["role"]=>
      string(6) "member"
      ["expLevel"]=>
      int(127)
      ["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(2300)
      ["versusTrophies"]=>
      int(2068)
      ["clanRank"]=>
      int(6)
      ["previousClanRank"]=>
      int(6)
      ["donations"]=>
      int(50)
      ["donationsReceived"]=>
      int(0)
    }
    [6]=>
    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(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(1670)
      ["versusTrophies"]=>
      int(2375)
      ["clanRank"]=>
      int(9)
      ["previousClanRank"]=>
      int(9)
      ["donations"]=>
      int(0)
      ["donationsReceived"]=>
      int(0)
    }
    [9]=>
    array(11) {
      ["tag"]=>
      string(10) "#2PU99CRQJ"
      ["name"]=>
      string(5) "Henry"
      ["role"]=>
      string(6) "member"
      ["expLevel"]=>
      int(106)
      ["league"]=>
      array(3) {
        ["id"]=>
        int(29000007)
        ["name"]=>
        string(15) "Gold League III"
        ["iconUrls"]=>
        array(3) {
          ["small"]=>
          string(94) "https://api-assets.clashofclans.com/leagues/72/vd4Lhz5b2I1P0cLH25B6q63JN3Wt1j2NTMhOYpMPQ4M.png"
          ["tiny"]=>
          string(94) "https://api-assets.clashofclans.com/leagues/36/vd4Lhz5b2I1P0cLH25B6q63JN3Wt1j2NTMhOYpMPQ4M.png"
          ["medium"]=>
          string(95) "https://api-assets.clashofclans.com/leagues/288/vd4Lhz5b2I1P0cLH25B6q63JN3Wt1j2NTMhOYpMPQ4M.png"
        }
      }
      ["trophies"]=>
      int(1502)
      ["versusTrophies"]=>
      int(2530)
      ["clanRank"]=>
      int(10)
      ["previousClanRank"]=>
      int(10)
      ["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"
      }
    }
  }
}






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 *