Skip to content

Commit 256310a

Browse files
🐛 fix: get info
1 parent 32a0ca0 commit 256310a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/WhatsApp.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ private function request()
5757
public function connect()
5858
{
5959
// Define o caminho, método e corpo da requisição para obter o código QR em HTML.
60-
$this->parth = "{$this->key}/instance";
60+
$this->parth = "/{$this->key}/instance";
6161
$this->method = "POST";
6262
// Executa a requisição e retorna o resultado.
6363
return $this->request();
@@ -72,7 +72,7 @@ public function connect()
7272
public function inforInstance()
7373
{
7474
// Define o caminho, método e corpo da requisição para obter informações sobre a instância.
75-
$this->parth = "{$this->key}/instance";
75+
$this->parth = "/{$this->key}/instance";
7676
$this->method = "GET";
7777
// Executa a requisição e retorna o resultado.
7878
return $this->request();
@@ -90,7 +90,7 @@ public function inforInstance()
9090
public function updateWebhook($body)
9191
{
9292
// Define o caminho, método e corpo da requisição para atualizar o webhook.
93-
$this->parth = "{$this->key}/instance";
93+
$this->parth = "/{$this->key}/instance";
9494
$this->method = "PUT";
9595
$this->body = json_encode($body);
9696
// Executa a requisição e retorna o resultado.
@@ -106,7 +106,7 @@ public function updateWebhook($body)
106106
public function logout()
107107
{
108108
// Define o caminho, método e corpo da requisição para efetuar o logout.
109-
$this->parth = "{$this->key}/instance";
109+
$this->parth = "/{$this->key}/instance";
110110
$this->method = "DELETE";
111111

112112
// Executa a requisição e retorna o resultado.

0 commit comments

Comments
 (0)