public function get($account, array $filters = array())
    {
        // Default: fetch groups list
        $endpoint = sprintf('groups/%s/', $account);

        if (!empty($filters)) {
            $endpoint = 'groups';

            if (isset($filters['group']) && is_array($filters['group'])) {
                $filters['group'] = implode('&group=', $filters['group']);
            }
        }

        return $this->requestGet($endpoint, $filters);
    }
public function get($account, array $filters = array())
    {
        // Default: fetch groups list
        $endpoint = sprintf('groups/%s/', $account);

        if (!empty($filters)) {
            $endpoint = 'groups';

            if (isset($filters['group']) && is_array($filters['group'])) {
                $filters['group'] = implode('&group=', $filters['group']);
            }
        }

        return $this->requestGet($endpoint, $filters);
    }
public function get ( $ account , array $ filters = array ( ) ) { // Default: fetch groups list $ endpoint = sprintf ( 'groups/%s/' , $ account ) ; if ( ! empty ( $ filters ) ) { $ endpoint = 'groups' ; if ( isset ( $ filters [ 'group' ] ) && is_array ( $ filters [ 'group' ] ) ) { $ filters [ 'group' ] = implode ( '&group=' , $ filters [ 'group' ] ) ; } } return $ this -> requestGet ( $ endpoint , $ filters ) ; }
Get a list of groups.

If `$filters` is not omitted, will return a list of matching groups.

<example>
$filters = array(
'group' => array('account_name/group_slug', 'other_account/group_slug')
);
</example>

@access public
@param  string           $account The team or individual account owning the repository.
@param  array            $filters
@return MessageInterface
Get a list of groups .