crisp-im / php-crisp-api

:elephant: Crisp API PHP Wrapper
https://docs.crisp.chat/guides/rest-api/
MIT License
58 stars 28 forks source link

It's not possible to delete website with this wrapper #12

Closed rmilesson closed 4 years ago

rmilesson commented 5 years ago

Hi!

It's not possible to delete a website with this API wrapper as of now since the verify-parameter is not passed along to the API.

Error message when using CrispWebsite::delete:

{"error":true,"reason":"invalid_data","data":{"namespace":"data","message":"data should have required property 'verify'"}}
eliottvincent commented 4 years ago

Hello, the error comes from the fact that the endpoint expects the verify parameter (your password) in data, in order to correctly process the deletion.