You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,8 @@ This is a **[laravel](https://laravel.com) service provider** for [Msg91 APIs](h
17
17
-[Send OTP](#send-otp)
18
18
-[Verify OTP](#verify-otp)
19
19
-[Resend OTP](#resend-otp)
20
+
-[Sending SMS](#sending-sms)
21
+
-[Handling Error Responses](#error-responses)
20
22
21
23
## Installation
22
24
@@ -140,6 +142,23 @@ Msg91::sms()
140
142
->send(); // send
141
143
```
142
144
145
+
## Error Responses
146
+
147
+
All the services will return `\Craftsys\Msg91\Response` instance for all successfully responses or will throw exceptions if request validation failed (`\Craftsys\Msg91\Exceptions\ValidationException`)or there was an error in the response (`\Craftsys\Msg91\Exceptions\ResponseErrorException`).
0 commit comments