Skip to content

Commit 01ac713

Browse files
authored
Merge pull request #8 from green-api/SW-2059
SW-2059: Added a new method
2 parents e5b2e34 + 702b8c2 commit 01ac713

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

src/tools/Account.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,19 @@ public function getSettings(): stdClass {
2727
'{{host}}/waInstance{{idInstance}}/GetSettings/{{apiTokenInstance}}' );
2828
}
2929

30+
/**
31+
* The method is aimed for getting the current account settings.
32+
*
33+
* @return stdClass
34+
* @link https://green-api.com/en/docs/api/account/GetWaSettings/
35+
*/
36+
37+
public function getWaSettings(): stdClass {
38+
39+
return $this->greenApi->request( 'GET',
40+
'{{host}}/waInstance{{idInstance}}/getWaSettings/{{apiTokenInstance}}' );
41+
}
42+
3043
/**
3144
* The method is aimed for getting the account state.
3245
*

0 commit comments

Comments
 (0)