Get all connected accounts.
766515
public function getAllConnectedAccounts() {
		$accounts = array();
		foreach ($this->getAllAccountConnections() as $ac) {
			$accounts[] = $ac->getProperty('coid://accountgateways.cloudobjects.io/connectsTo');
		}
		return $accounts;
	}
40493
def list(self):
        
        response = self.client._make_request('/accounts')
        response = response.json()
        return self.client._list_response(response)
1330664
public function getAllUsers() : array {
		$result = $this->db->query("SELECT id FROM accounts;");
		$users = [];
		foreach ($result->fetch_all(MYSQLI_ASSOC) as $user) {
			$users[(int)$user["id"]] = $this->getUserFromId((int)$user["id"]);
		}
		return $users;
	}
283115
def get_connections(self, data=False):
        
        if data:
            return self._connections
        return list(self._connections.keys())
1175537
def get(self, limit=None, offset=None):
        
        return self.connection.get('account/transfer/admin/array', limit=limit, offset=offset)
294533
def get_addresses(self, account_id, **params):
        """"""
        response = self._get('v2', 'accounts', account_id, 'addresses', params=params)
        return self._make_api_object(response, Address)
869014
def namedb_get_all_account_addresses(cur):
    
    assert BLOCKSTACK_TEST, 'BUG: this method is only available in test mode'
    sql = 'SELECT DISTINCT address FROM accounts;'
    args = ()
    rows = namedb_query_execute(cur, sql, args)

    ret = []
    for rowdata in rows:
        ret.append(rowdata['address'])

    return ret
378114
def _get_external_accounts(self, locals):
        '''
        
        '''
        users = dict()
        out = __salt__['cmd.run_all']("passwd -S -a")
        if out['retcode']:
            # System does not supports all accounts descriptions, just skipping.
            return users
        status = {'L': 'Locked', 'NP': 'No password', 'P': 'Usable password', 'LK': 'Locked'}
        for data in [elm.strip().split(" ") for elm in out['stdout'].split(os.linesep) if elm.strip()]:
            if len(data) < 2:
                continue
            name, login = data[:2]
            if name not in locals:
                users[name] = {
                    'login': login,
                    'status': status.get(login, 'N/A')
                }

        return users
498940
def get_all_accounts
      url = ApiRequest.base_path("questionpro.survey.getAllAccounts")
      result = self.class.get(url, body: self.options)

      self.full_response = result
      self.status = result['status']
      
      accounts = []
      result_accounts = result['response']['accounts']
      result_accounts.each do |account|
        accounts.push(Account.new(account))
      end
      
      return accounts
    end
734686
def get_all_external_accounts(resource_root, type_name, view=None):
  
  return call(resource_root.get,
      EXTERNAL_ACCOUNT_FETCH_PATH % ("type", type_name,),
      ApiExternalAccount, True, params=view and dict(view=view) or None)
1257786
public function getAccounts()
    {
        $accounts = $this->serviceHelper->getService()->management_accounts->listManagementAccounts()->getItems();
        $data = array();

        foreach ($accounts as $account) {
            $data[$account->getName()] = array(
                    'accountId' => $account->getId(),
                    'accountName' => $account->getName(),
                );
        }
        ksort($data);

        return $data;
    }
635919
def get_all(cls):
        

        api = Client.instance().api

        data = api.database.get()

        database_names = data['result']
        databases = []

        for name in database_names:
            db = Database(name=name, api=api)
            databases.append(db)

        return databases
1345878
private static List<ConnectionNotation> getAllSelfCycleConnections(List<ConnectionNotation> connections) {
    List<ConnectionNotation> listSelfCycle = new ArrayList<ConnectionNotation>();
    for (ConnectionNotation connection : connections) {
      if ((connection.getTargetId().getId().equals(connection.getSourceId().getId()))) {
        listSelfCycle.add(connection);
      }
    }
    return listSelfCycle;
  }
264964
public function getAllAccounts()
    {
        $accounts = array_merge($this->getAllUsers(), $this->getResellers(), $this->getAdmins());
        ksort($accounts);
        return $accounts;
    }
142292
async def get_connections(self, data=True):
        
        return await self.menv.get_connections(data=data, as_coro=True)
579934
def is_connected(self):
        """"""
        return all([r.is_connected() for r in dict.values(self.children)])
1368308
def reconnect_account(self):
        
        url = self.reconnect_url
        result = self.get(url)
        return result