當前位置: 首頁>>代碼示例>>Python>>正文


Python E.withAdditionalData方法代碼示例

本文整理匯總了Python中openprovider.modules.E.withAdditionalData方法的典型用法代碼示例。如果您正苦於以下問題:Python E.withAdditionalData方法的具體用法?Python E.withAdditionalData怎麽用?Python E.withAdditionalData使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在openprovider.modules.E的用法示例。


在下文中一共展示了E.withAdditionalData方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: retrieve_domain_request

# 需要導入模塊: from openprovider.modules import E [as 別名]
# 或者: from openprovider.modules.E import withAdditionalData [as 別名]
 def retrieve_domain_request(self, domain, additional_data=False, registry_details=False):
     request = E.retrieveDomainRequest(
             _domain(domain),
             E.withAdditionalData(int(additional_data)),
             E.withRegistryDetails(int(registry_details)),
     )
     response = self.request(request)
     return response.as_model(DomainDetails)
開發者ID:AntagonistHQ,項目名稱:openprovider.py,代碼行數:10,代碼來源:domain.py

示例2: retrieve_customer

# 需要導入模塊: from openprovider.modules import E [as 別名]
# 或者: from openprovider.modules.E import withAdditionalData [as 別名]
    def retrieve_customer(self, handle, with_additional_data=False):
        """Retrieve information of an existing customer."""

        response = self.request(E.retrieveCustomerRequest(
            E.handle(handle),
            E.withAdditionalData(int(with_additional_data)),
        ))

        return response.as_model(Customer)
開發者ID:AntagonistHQ,項目名稱:openprovider.py,代碼行數:11,代碼來源:customer.py

示例3: search_customer

# 需要導入模塊: from openprovider.modules import E [as 別名]
# 或者: from openprovider.modules.E import withAdditionalData [as 別名]
    def search_customer(self, limit=100, offset=0, email_pattern=None, last_name_pattern=None,
            company_name_pattern=None, with_additional_data=False):
        """Search the list of customers."""

        response = self.request(E.searchCustomerRequest(
            E.limit(limit),
            E.offset(offset),
            E.emailPattern(email_pattern or ''),
            E.lastNamePattern(last_name_pattern or ''),
            E.companyNamePattern(company_name_pattern or ''),
            E.withAdditionalData(int(with_additional_data)),
        ))

        return response.as_models(Customer)
開發者ID:AntagonistHQ,項目名稱:openprovider.py,代碼行數:16,代碼來源:customer.py


注:本文中的openprovider.modules.E.withAdditionalData方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。