Hi, I have my APP_KEY, APP_SECRET, USERNAME, PASSWORD.
I have also a little knowledge of python. I want to download detail call log without fax and Inbound calls between two defined date.
Any idea or sample script will be very helpful for me.
Thanks
Hi, I have my APP_KEY, APP_SECRET, USERNAME, PASSWORD.
I have also a little knowledge of python. I want to download detail call log without fax and Inbound calls between two defined date.
Any idea or sample script will be very helpful for me.
Thanks
Here is my code sample:print(res.text())
import os
from dotenv import load_dotenv
load_dotenv(dotenv_path=os.getenv('ENV_PATH'))
from ringcentral import SDK
sdk = SDK(
os.getenv('MyClientId'),
os.getenv('Mysecret Key'),
os.getenv('https://platform.devtest.ringcentral.com'))
platform = sdk.platform()
platform.login(
os.getenv('MyUsername'),
os.getenv('MyExtention'),
os.getenv('MyPassword'))
try:
from urllib import urlencode
except: # For Python 3
from urllib.parse import urlencode
query = {
'dateFrom': '2018-05-01T00:00:00Z',
'dateTo': '2018-06-01T00:00:00Z',
'direction': 'Outbound',
'type': 'Voice',
'view': 'Detailed'}
qs = urlencode(query)
res = platform.get('/restapi/v1.0/account/~/extension/~/call-log?'+qs)
Here is the error:Traceback (most recent call last):
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.