GithubHelp home page GithubHelp logo

crisp-im / python-crisp-api Goto Github PK

View Code? Open in Web Editor NEW
25.0 25.0 11.0 163 KB

๐Ÿ Crisp API Python Wrapper

Home Page: https://docs.crisp.chat/guides/rest-api/

License: MIT License

Python 100.00%

python-crisp-api's People

Contributors

baptistejamin avatar dinis07 avatar dinistavares avatar eliottvincent avatar lvillis avatar pierreleguen avatar sadeghi-aa avatar valeriansaliou avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

python-crisp-api's Issues

python2 install errror

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.

Manage a release note

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

List People Profiles doesn't take query string params.

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}

Cannot install crisp-api using pip

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 !

Convert README from Markdown to reStructuredText

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.

Change Conversation State example

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"}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.