From 3957a7475e9b4945def701b747df80a6fb366427 Mon Sep 17 00:00:00 2001 From: Marek Isalski Date: Sun, 17 Jul 2022 12:44:28 +0100 Subject: [PATCH] fetching calls --- src/sipcentric/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/sipcentric/__init__.py b/src/sipcentric/__init__.py index 2563220..2378ad1 100644 --- a/src/sipcentric/__init__.py +++ b/src/sipcentric/__init__.py @@ -11,6 +11,7 @@ import math import requests import time import logging +import urllib.parse import simplejson as json @@ -241,7 +242,10 @@ class Customer(APIObject): yield PhoneNumber(self._api, data=c) def calls(self, params=None): - for c in self._api.getMany(Call.makeUrl(parent=self, params=params, pageSize=100)): + if params is None: + params = {} + params['pageSize'] = 500 + for c in self._api.getMany(Call.makeUrl(parent=self), params=params): yield Call(self._api, data=c) def callbundles(self):