Skip to content

Commit ea7eaf8

Browse files
committed
Update readme again
1 parent eba8ead commit ea7eaf8

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff 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
8383
added 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

0 commit comments

Comments
 (0)