本文整理匯總了Python中openprovider.modules.E.limit方法的典型用法代碼示例。如果您正苦於以下問題:Python E.limit方法的具體用法?Python E.limit怎麽用?Python E.limit使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類openprovider.modules.E
的用法示例。
在下文中一共展示了E.limit方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: search_extension
# 需要導入模塊: from openprovider.modules import E [as 別名]
# 或者: from openprovider.modules.E import limit [as 別名]
def search_extension(self, limit=100, offset=0, **kw):
"""Search the list of available extensions."""
response = self.request(
E.searchExtensionRequest(
E.limit(limit),
E.offset(offset),
E.withDescription(int(kw.get("with_description", 0))),
E.withPrice(int(kw.get("with_price", 0))),
E.withUsageCount(int(kw.get("with_usage_count", 0))),
)
)
return response.as_models(Extension)
示例2: search_customer
# 需要導入模塊: from openprovider.modules import E [as 別名]
# 或者: from openprovider.modules.E import limit [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)