fetching calls
This commit is contained in:
parent
4e27779299
commit
3957a7475e
@ -11,6 +11,7 @@ import math
|
|||||||
import requests
|
import requests
|
||||||
import time
|
import time
|
||||||
import logging
|
import logging
|
||||||
|
import urllib.parse
|
||||||
|
|
||||||
import simplejson as json
|
import simplejson as json
|
||||||
|
|
||||||
@ -241,7 +242,10 @@ class Customer(APIObject):
|
|||||||
yield PhoneNumber(self._api, data=c)
|
yield PhoneNumber(self._api, data=c)
|
||||||
|
|
||||||
def calls(self, params=None):
|
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)
|
yield Call(self._api, data=c)
|
||||||
|
|
||||||
def callbundles(self):
|
def callbundles(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user