Get fido account number.
519457
def _get_account_number(self, token, uuid):
        """"""
        # Data
        data = {"accessToken": token,
                "uuid": uuid}
        # Http request
        try:
            raw_res = yield from self._session.post(ACCOUNT_URL,
                                                    data=data,
                                                    headers=self._headers,
                                                    timeout=self._timeout)
        except OSError:
            raise PyFidoError("Can not get account number")
        # Load answer as json
        try:
            json_content = yield from raw_res.json()
            account_number = json_content\
                            .get('getCustomerAccounts', {})\
                            .get('accounts', [{}])[0]\
                            .get('accountNumber')
        except (OSError, ValueError):
            raise PyFidoError("Bad json getting account number")
        # Check collected data
        if account_number is None:
            raise PyFidoError("Can not get account number")

        return account_number
264191
def get_withdrawal(self, account_id, withdrawal_id, **params):
        """"""
        response = self._get(
            'v2', 'accounts', account_id, 'withdrawals', withdrawal_id, params=params)
        return self._make_api_object(response, Withdrawal)
1105030
def get_fd(file_or_fd, default=None):
    """"""
    fd = file_or_fd
    if fd is None:
        fd = default
    if hasattr(fd, "fileno"):
        fd = fd.fileno()
    return fd
53150
def accounts_spec(self):
        """"""
        formatted_account_id = formatted(valid_account_id(), MergedOptionStringFormatter, expected_type=string_types)
        return dictof(string_spec(), formatted_account_id)
152992
def get_accounts(self, **params):
        """"""
        response = self._get('v2', 'accounts', params=params)
        return self._make_api_object(response, Account)
692642
def get(self, accountId):
        """"""
        account = BaseAccount.get(accountId)
        if account:
            return self.make_response({
                'message': None,
                'account': account.to_json(is_admin=True)
            })
        else:
            return self.make_response({
                'message': 'Unable to find account',
                'account': None
            }, HTTP.NOT_FOUND)
521355
def getBuyerInfo(self, auction_id, buyer_id):
        """"""
        # TODO: add price from getBids
        rc = self.__ask__('doGetPostBuyData', itemsArray=self.ArrayOfLong([auction_id]), buyerFilterArray=self.ArrayOfLong([buyer_id]))
        rc = rc[0]['usersPostBuyData']['item'][0]['userData']
        return {'allegro_aid': auction_id,
                'allegro_uid': rc['userId'],
                'allegro_login': magicDecode(rc['userLogin']),
                'name': magicDecode(rc['userFirstName']),
                'surname': magicDecode(rc['userLastName']),
                'company': magicDecode(rc['userCompany']),
                'postcode': magicDecode(rc['userPostcode']),
                'city': magicDecode(rc['userCity']),
                'address': magicDecode(rc['userAddress']),
                'email': magicDecode(rc['userEmail']),
                'phone': rc['userPhone']}
1300430
def get(self, id):
        """"""
        params = {'q': 'id:%s' % str(id), 'wt': 'python'}
        request = urllib.parse.urlencode(params, doseq=True)
        data = None
        try:
            rsp = self.doPost(self.solrBase + '', request, self.formheaders)
            data = eval(rsp.read())
        except Exception:
            pass
        if data['response']['numFound'] > 0:
            return data['response']['docs'][0]
        return None
881997
function igets($fid=0,$order = 'id')
	{
		$gets['fid'] = $fid;
		$gets['order'] = $order;
		return $this->gets($gets);
	}
974965
def _get_file_index_str(self):
        """"""
        file_index = str(self.file_index)
        if self.n_digits is not None:
            file_index = file_index.zfill(self.n_digits)
        return file_index
897698
private static void getAccountInfoBySettingClient() {
    try {
      Account response = Account.getter()
        .client(client)
        .get();
      System.out.println(response);
    } catch (PlivoRestException | IOException e) {
      e.printStackTrace();
    }
  }
395038
def get_account_at(self, address, block_number):
        
        cur = self.db.cursor()
        return namedb_get_account_at(cur, address, block_number)
169694
def get_transaction(self, account_id, transaction_id, **params):
        """"""
        response = self._get(
            'v2', 'accounts', account_id, 'transactions', transaction_id, params=params)
        return self._make_api_object(response, Transaction)
239249
def service_account_email(self):
        """"""
        if self._service_account_id is None:
            self._service_account_id = app_identity.get_service_account_name()
        return self._service_account_id
334409
def get(self):
    """"""
    try:
      app_user = InitUser()

      if (app_user.client_id and app_user.client_secret and
          app_user.adwords_manager_cid and app_user.developer_token and
          app_user.refresh_token):
        self.redirect('/showAccounts')
      else:
        self.redirect('/showCredentials')
    except Exception, e:
      logging.debug(str(e))
559081
def get_account(self):
        '''
        
        '''
        try:
            listing = self.conn.get_account()
            return listing
        except Exception as exc:
            log.error('There was an error::')
            if hasattr(exc, 'code') and hasattr(exc, 'msg'):
                log.error('    Code: %s: %s', exc.code, exc.msg)
            log.error('    Content: \n%s', getattr(exc, 'read', lambda: six.text_type(exc))())
            return False
211622
def get_registered(self):
        """"""

        doc = self._request(self.ws_prefix + ".getInfo", True)

        return _extract(doc, "registered")