Hi Team, I'm calling the Call Log API using the code snippet below from both a Sandbox environment and a Live environment (one of our customers), and the Call Log that is created from this always shows up with empty data. Both the Sandbox and Live environment have information in their Call Log confirmed. What needs to be done to pull the full data of the call log?
from ringcentral import SDK
RINGCENTRAL_CLIENTID = '[insert]'
RINGCENTRAL_CLIENTSECRET = '[insert]'
RINGCENTRAL_SERVER = '[insert]'
rcsdk = SDK( RINGCENTRAL_CLIENTID, RINGCENTRAL_CLIENTSECRET, RINGCENTRAL_SERVER)
platform = rcsdk.platform()
JWT_TOKEN = "[insert]"
try:
platform.login( jwt=JWT_TOKEN )
params = {
'dateFrom': "2012-01-01T00:00:00.000Z"
}
resp = platform.get('/restapi/v1.0/account/~/extension/~/call-log', params)
for record in resp.json().records:
print ("Call type: " + record.type)
except Exception as e:
print ("Unable to authenticate to platform. Check credentials." + str(e))