Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sibiling
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Syaifur
sibiling
Commits
8b71a30f
Commit
8b71a30f
authored
Oct 23, 2024
by
syaifurplus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update token api wa gateway
parent
773b4e8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
globalhelper.php
app/Helpers/globalhelper.php
+2
-2
No files found.
app/Helpers/globalhelper.php
View file @
8b71a30f
...
@@ -41,7 +41,7 @@ function cekKopSurat($idPSekolah = null) {
...
@@ -41,7 +41,7 @@ function cekKopSurat($idPSekolah = null) {
function
kirimWhatsapp
(
$phone
,
$message
,
$type
=
null
)
{
function
kirimWhatsapp
(
$phone
,
$message
,
$type
=
null
)
{
$token
=
"
9pKzgRHJ2RvLq69BJikqyARqcweBbFFE9coNgeqDExZs5umKWE
"
;
$token
=
"
2vomb7A3X7hhRAarrHELBHGaJJTgodXeYoPzZke3HAkrmo5BjD
"
;
$curlUrl
=
'https://app.ruangwa.id/api/send_message'
;
$curlUrl
=
'https://app.ruangwa.id/api/send_message'
;
if
(
$type
==
'express'
)
{
if
(
$type
==
'express'
)
{
...
@@ -65,4 +65,4 @@ function kirimWhatsapp($phone, $message, $type = null) {
...
@@ -65,4 +65,4 @@ function kirimWhatsapp($phone, $message, $type = null) {
curl_close
(
$curl
);
curl_close
(
$curl
);
$result
=
json_decode
(
$response
);
$result
=
json_decode
(
$response
);
return
$result
;
return
$result
;
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment