src/Client.php
private function _clansMembersOnly(string $param): array
    {
        $curlClient = curl_init(
            self::BASE_URL .
            self::CLANS_URL .
            '/' .
            \urlencode($param) .
            '/members'
        );
        curl_setopt($curlClient, CURLOPT_HTTPHEADER, $this->_curlHeader);
        curl_setopt($curlClient, CURLOPT_RETURNTRANSFER, true);
        $results = json_decode(curl_exec($curlClient), true);
        $members = [];
        foreach ($results['items'] as $result) {
            $members[] = Player::create($result);
        }
        return $members;
    }
private function _clansMembersOnly(string $param): array
    {
        $curlClient = curl_init(
            self::BASE_URL .
            self::CLANS_URL .
            '/' .
            \urlencode($param) .
            '/members'
        );
        curl_setopt($curlClient, CURLOPT_HTTPHEADER, $this->_curlHeader);
        curl_setopt($curlClient, CURLOPT_RETURNTRANSFER, true);
        $results = json_decode(curl_exec($curlClient), true);
        $members = [];
        foreach ($results['items'] as $result) {
            $members[] = Player::create($result);
        }
        return $members;
    }
private function _clansMembersOnly ( string $ param ) : array { $ curlClient = curl_init ( self :: BASE_URL . self :: CLANS_URL . '/' . \ urlencode ( $ param ) . '/members' ) ; curl_setopt ( $ curlClient , CURLOPT_HTTPHEADER , $ this -> _curlHeader ) ; curl_setopt ( $ curlClient , CURLOPT_RETURNTRANSFER , true ) ; $ results = json_decode ( curl_exec ( $ curlClient ) , true ) ; $ members = [ ] ; foreach ( $ results [ 'items' ] as $ result ) { $ members [ ] = Player :: create ( $ result ) ; } return $ members ; }
Search for clan members only of a specific clan
@param string $param the clan tag
@return array array of player who are members of the clan, hwich matches the
clan tag
Search for clan members only of a specific clan