diff --git a/README.md b/README.md index 22dfc30..3f45270 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Add the following to your composer.json: ``` $connect = new Api(); -$connect->sendApiRequest($method); +$connect->sendRequest($method); ``` ## Api methods @@ -31,6 +31,7 @@ $connect->sendApiRequest($method); ### Session - [x] getSessions +- [x] getSessionList - [ ] createSession - [ ] updateSession - [ ] closeSession @@ -53,7 +54,7 @@ $connect->sendApiRequest($method); ``` $state = new \leocata\M1\Methods\Request\SetState(); $state->online(); -(new Api())->sendApiRequest($state); +(new Api())->sendRequest($state); ``` ### Contact @@ -62,7 +63,7 @@ $state->online(); - [ ] inviteContact - [x] contactRequested - [x] contactAccept -- [ ] contactAccepted +- [x] contactAccepted - [ ] contactReject - [ ] contactRejected - [ ] deleteContact diff --git a/src/Api.php b/src/Api.php index 40d88c0..7277da3 100644 --- a/src/Api.php +++ b/src/Api.php @@ -86,7 +86,7 @@ public function getCallbackMethod(string $data) * * @return RequestMethods */ - public function sendApiRequest(RequestMethods $method) + public function sendRequest(RequestMethods $method) { $response = $this->client->getResponseContent($method->getRequestString()); if (!empty($response)) { diff --git a/tests/Mock/MockApi.php b/tests/Mock/MockApi.php index 5997536..d2ed243 100644 --- a/tests/Mock/MockApi.php +++ b/tests/Mock/MockApi.php @@ -17,8 +17,8 @@ public function getCallbackMethod(string $data) return parent::getCallbackMethod($data); } - public function sendApiRequest(RequestMethods $method) + public function sendRequest(RequestMethods $method) { - return parent::sendApiRequest($method); + return parent::sendRequest($method); } }