crisp-im / python-crisp-api Goto Github PK
View Code? Open in Web Editor NEW๐ Crisp API Python Wrapper
Home Page: https://docs.crisp.chat/guides/rest-api/
License: MIT License
๐ Crisp API Python Wrapper
Home Page: https://docs.crisp.chat/guides/rest-api/
License: MIT License
Hi,
How can I listen to user's messages? I need to implement something similar to this thread. I want to know this feature handled in python or not?
Best,
Amir
How do I start a new conversation with existing profile?
Hi,
It seems the setup does not support python2. I try pip install crisp-api
in python2 environment and got this errors:
Collecting crisp-api
Downloading crisp-api-1.1.8.tar.gz (10 kB)
ERROR: Command errored out with exit status 1:
command: /home/dat/.venv2/fue/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-Mju4zm/crisp-api/setup.py'"'"'; file='"'"'/tmp/pip-install-Mju4zm/crisp-api/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-_CsMkr
cwd: /tmp/pip-install-Mju4zm/crisp-api/
Complete output (5 lines):
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-install-Mju4zm/crisp-api/setup.py", line 16, in
long_description=open('README.md', encoding='utf-8').read(),
TypeError: 'encoding' is an invalid keyword argument for this function
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
It's kinda difficult to know what's new when a new version is out. Currently, I have to dig the commits to know what changed.
It would be awesome to have a release note with each new version
params can be added to this method client.website.list_people_profiles(website_id, page_number, params) to have all options in the API
/website/{website_id}/people/profiles/{page_number}{?sort_field}{&sort_order}{&search_operator}{&search_filter}
We started getting conversation_not_found error in client.website.update_conversation_metas
since upgrading to 1.1.5 . 1.1.6 is also affected. Downgrading back to 1.1.4 fixes the issue.
check_people_profile_exists does not return True or False,
Hi,
I plan to use the Crisp API lib in Python but I cannot install it with pip.
I think the issue is due to the last pull request who has not been pushed to the pip servers.
So in the setup.py
the encoding='utf-8'
is not present and pip during the install cannot read the README.md file : UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 226: character maps to <undefined>
.
Can you update pip server with the latest code.
Thanks !
Hi I'm trying to find the people id for an existing contact in the crisp. So I called this api like this.
response = client.website.check_people_profile_exists(settings.CRISP_WEBSITE_ID, '[email protected]')
But is throwing a JSONDecodeError exception. What I'm doing wrong?
When trying to publishing to PyPI:
HTTPError: 400 Client Error: The description failed to render in the default format of reStructuredText. See https://pypi.org/help/#description-content-type for more information. for url: https://upload.pypi.org/legacy/
The README must be converted to the new README format in order to resume our ability to publish packages.
I wish i could see the response of these methods, but they dont return anything
In the example of Change Conversation State [client.website.change_conversation_state(website_id, session_id, data)]
you passed data as a string but it should be and object like this : {"state":"resolved"}
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.