Skip to content

Commit 718d149

Browse files
marcovtwoutMinishlink
authored andcommitted
Expand explanation of results array (#102)
- Add missing key "message" - Make more clear that results are returned for all requests (both failed and succeeded)
1 parent ba2f9cd commit 718d149

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -174,15 +174,19 @@ The `expired` key can be useful to clean your database of expired endpoints.
174174

175175
```php
176176
$res = array(
177-
array( // first notification
177+
array( // first notification (failed)
178178
'success' => false,
179179
'endpoint' => $theEndpointToDeleteInYourDatabaseIfExpired
180+
'message' => $responseMessage,
180181
'statusCode' => $responseStatusCode,
181182
'headers' => $responseHeaders,
182183
'content' => $responseContent, // you may have more infos here
183184
'expired' => $isTheEndpointWrongOrExpired,
184185
),
185-
array( // second notification
186+
array( // second notification (succeeded)
187+
'success' => true,
188+
),
189+
array( // third notification
186190
...
187191
), ...
188192
);

0 commit comments

Comments
 (0)