Skip to content

Commit

Permalink
remove credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
jhowbhz committed Feb 7, 2024
1 parent 7c25f64 commit 806c8c1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion evolution/PHP/teste-baileys/sendtext/baileys.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
require_once './utils.php';

$response = requestDefault('evolution/message/sendText', [
"Bearer" => "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL3BsYXRhZm9ybWEuYXBpYnJhc2lsLmNvbS5ici9hdXRoL2xvZ2luIiwiaWF0IjoxNjc2MzA0NjgxLCJleHAiOjE3MDc4NDA2ODEsIm5iZiI6MTY3NjMwNDY4MSwianRpIjoiNEVBWDBubWFPUDVaazN0UiIsInN1YiI6IjIiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.vwT4CM5BTl8_OmnKw8dIxi3qe1WPKcfTL3x6KhcwVaY", //your bearer token
"DeviceToken" => "9c60a5a7-d7c6-4c59-93df-d563c024e7f6", //your device token
"body" => [
"number" => "5531994359434",
Expand Down
4 changes: 2 additions & 2 deletions evolution/PHP/teste-baileys/socket/baileys.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@

const socket = io('https://socket.apibrasil.com.br', {
query: {
"bearer": 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL3BsYXRhZm9ybWEuYXBpYnJhc2lsLmNvbS5ici9hdXRoL2xvZ2luIiwiaWF0IjoxNjc2MzA0NjgxLCJleHAiOjE3MDc4NDA2ODEsIm5iZiI6MTY3NjMwNDY4MSwianRpIjoiNEVBWDBubWFPUDVaazN0UiIsInN1YiI6IjIiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.vwT4CM5BTl8_OmnKw8dIxi3qe1WPKcfTL3x6KhcwVaY', // seu BearerToken
"channelName": '2d55c381-6fa3-4a62-8cec-1ad0b479599e' //seu profileID
"bearer": '.........CJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.vwT4CM5BTl8_OmnKw8dIxi3qe1WPKcfTL3x6KhcwVaY', // seu BearerToken
"channelName": '.....1ad0b479599e' //seu profileID
},
transports: ['websocket']
});
Expand Down
2 changes: 1 addition & 1 deletion evolution/PHP/teste-baileys/utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function requestDefault(String $action = '', Array $data = []) {
$method = isset($data['method']) ? $data['method'] : "POST";

// seu bearer token que dura 1 ano e é gerado na aba /api/v2/login
$bearerToken = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL3BsYXRhZm9ybWEuYXBpYnJhc2lsLmNvbS5ici9hdXRoL2xvZ2luIiwiaWF0IjoxNjc2MzA0NjgxLCJleHAiOjE3MDc4NDA2ODEsIm5iZiI6MTY3NjMwNDY4MSwianRpIjoiNEVBWDBubWFPUDVaazN0UiIsInN1YiI6IjIiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.vwT4CM5BTl8_OmnKw8dIxi3qe1WPKcfTL3x6KhcwVaY";
$bearerToken = ".....vwT4CM5BTl8_OmnKw8dIxi3qe1WPKcfTL3x6KhcwVaY";

// define as variáveis se existirem no array, senão, define como vazio
$deviceToken = $data['DeviceToken'] ?? '';
Expand Down

0 comments on commit 806c8c1

Please sign in to comment.