dialpad / dialpad-python-sdk Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hi!
Apologies in advance for creating this as a Git issue - I just figured this may be the easiest way to get some technical guidance from your team...
We're currently working on an implementation using the Dialpad API (and preferably through the Python SDK) where we need to consistently/constantly retrieve all of the transcripts of all conversations of the workforce at the company.
So far, when reading through API documentation, it appears that the best way to do this would be to:
POST
request to the /statistics
endpoint for a given date range.GET
request to the /statistics
endpoint.call_id
values.GET
request to the transcript
endpoint specifying the call_id
in the URL.Is this the best way of performing this process? The portion of this process that seems like it could be potentially brittle is the asynchronous + polling nature of the statistics
requests.
We know that there is also a webhook/event driven mechanism, but are trying to avoid hosting additional infrastructure for the sake of identifying relevant call_ids
.
TLDR: What is the best way for us to retrieve call_ids
for a given date range WITHOUT hosting additional infrastructure?
When installing v2.2.2, getting an UnicodeDecodeError
exception. This is probably addressed in #22 which is waiting to be merged.
Collecting python-dialpad==2.2.0
Downloading python-dialpad-2.2.0.tar.gz (24 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [20 lines of output]
Traceback (most recent call last):
File "c:\root\.venv\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
main()
File "c:\root\.venv\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "c:\root\.venv\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "C:\Users\user\AppData\Local\Temp\pip-build-env-evf6l3se\overlay\Lib\site-packages\setuptools\build_meta.py", line 325, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "C:\Users\user\AppData\Local\Temp\pip-build-env-evf6l3se\overlay\Lib\site-packages\setuptools\build_meta.py", line 295, in _get_build_requires
self.run_setup()
File "C:\Users\user\AppData\Local\Temp\pip-build-env-evf6l3se\overlay\Lib\site-packages\setuptools\build_meta.py", line 480, in run_setup
super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
File "C:\Users\user\AppData\Local\Temp\pip-build-env-evf6l3se\overlay\Lib\site-packages\setuptools\build_meta.py", line 311, in run_setup
exec(code, locals())
File "<string>", line 15, in <module>
File "<string>", line 8, in readme
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\encodings\cp1255.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9f in position 5080: character maps to <undefined>
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
We were not able to use the python sdk to pull the full contact list. It would error in a bad iterator on the second page of results from the rest api.
We resolved the issue by adding a limit param to the list call and then running the request once and then removing the limit param and the full request succeeded.
It seem the cursor on your server was somehow corrupt and then when a new one was issued it resolved itself.
The error was persistent over multiple days until we added that limit param.
Python 2.7 is end of life and no longer supported. Pipfile, setup.py and documentation should be updated to work with >= python 3.8.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.