crisp-im / php-crisp-api

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

Server Error #14

Closed JulienBrochier closed 3 years ago

JulienBrochier commented 5 years ago

Hi, I've added this code to my website :

require DIR . '/vendor/autoload.php'; $CrispClient = new Crisp();

$CrispClient->authenticate(identifier, key);

$profile = $CrispClient->userProfile->get(); $firstName = $profile["first_name"]; echo "Hello $firstName";

with my own identifier and key and it returns a 500 error.

In particular, this line : $profile = $CrispClient->userProfile->get() seems to cause the issue.

I've also tried to create a conversation and I have the same issue

eliottvincent commented 3 years ago

Hello Julien! I can't seem to reproduce. Please feel free to re-open this issue if you still encounter any error again.