本文整理汇总了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)
示例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)
示例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)