File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ $laravelCrisp->officialClient->websitePeople->findByEmail(
7979);
8080```
8181
82- The second main difference is extra methods that I think are useful but are not in Crisp official SDK when I 1st
82+ The 2nd main difference are extra methods that I think are useful but are not in Crisp official SDK when I 1st
8383added them.
8484
8585``` php
@@ -103,6 +103,19 @@ $crispConversation = $laravelCrisp->websiteConversations->getOneCrispConversatio
103103// of the object with IDE hints!
104104$crispConversation->is_verified;
105105```
106+
107+ The 3rd main difference is a few methods' signatures are changed to be more user-friendly compared to
108+
109+ ``` php
110+ // The official Crisp PHP sdk takes in a params array, mine takes in the 2 required arguments directly
111+ $laravelCrisp->websiteConversations->create('website name', 'website.domain');
112+
113+ // The official Crisp PHP sdk takes in a params array, where the date key need to be in ISO 8601 string format,
114+ // Mine takes in a Carbon instance directly and do the conversion for you. You can also pass in a ISO 8601 string for the $date
115+ // argument if you prefer.
116+ $laravelCrisp->websiteConversations->scheduleReminder($sessionId, now()->addDay(), 'Note');
117+ ```
118+
106119## Testing
107120
108121``` bash
You can’t perform that action at this time.
0 commit comments