opensms
This commit is contained in:
1 parent
326c677e8d
commit
d9b7b0f930
2 files changed
+18
-18
No files matched your search
+18
-18
@@ -75,26 +75,26 @@ function sendSMS(string|int $phone, string|int $message): mixed
|
|||||||
|
|
||||||
return [];
|
return [];
|
||||||
|
|
||||||
// $response = Http::withToken('WsTEJTBGlQiJ')
|
$response = Http::withToken('WsTEJTBGlQiJ')
|
||||||
// ->retry(
|
->retry(
|
||||||
// times: 3,
|
times: 3,
|
||||||
// sleepMilliseconds: 50,
|
sleepMilliseconds: 50,
|
||||||
// throw: false,
|
throw: false,
|
||||||
// when: function (Exception $exception, PendingRequest $request) {
|
when: function (Exception $exception, PendingRequest $request) {
|
||||||
// Log::channel('sms_api_error')
|
Log::channel('sms_api_error')
|
||||||
// ->error('Exception: ', [
|
->error('Exception: ', [
|
||||||
// 'message' => $exception->getMessage(),
|
'message' => $exception->getMessage(),
|
||||||
// 'line' => $exception->getLine(),
|
'line' => $exception->getLine(),
|
||||||
// ]);
|
]);
|
||||||
|
|
||||||
// return true;
|
return true;
|
||||||
// })
|
})
|
||||||
// ->post('https://sms.post.gov.tm/api/clients/sms/create', [
|
->post('https://sms.post.gov.tm/api/clients/sms/create', [
|
||||||
// 'phone' => '993'.$phone,
|
'phone' => '993'.$phone,
|
||||||
// 'content' => $message,
|
'content' => $message,
|
||||||
// ]);
|
]);
|
||||||
|
|
||||||
// return $response->json();
|
return $response->json();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user