diff --git a/src/API.php b/src/API.php index 2da3495..4e4d3f8 100644 --- a/src/API.php +++ b/src/API.php @@ -105,10 +105,10 @@ public function sendLongMessageBatch(array $messages) $request = $this->client->newRequest( 'POST', $this->client->buildUriWithQuery( - $this->client->getLongMessageBaseURL() . '/SpLmPost', + $this->client->getLongMessageBaseURL() . '/api/mtk/SmBulkSend', ['Encoding_PostIn' => 'UTF8'] ), - 'text/plain', + 'application/x-www-form-urlencoded', $body ); @@ -139,8 +139,8 @@ public function sendLongMessage(Message\LongMessage $message) public function queryAccountPoint() { $request = $this->client->newRequest( - 'GET', - $this->client->buildUriWithQuery('/SmQueryGet.asp') + 'POST', + $this->client->buildUriWithQuery('/api/mtk/SmQuery') ); $response = $this->client->sendRequest($request); @@ -162,8 +162,8 @@ public function queryAccountPoint() public function queryMessageStatus(array $ids) { $request = $this->client->newRequest( - 'GET', - $this->client->buildUriWithQuery('/SmQueryGet.asp', ['msgid' => implode(',', $ids)]) + 'POST', + $this->client->buildUriWithQuery('/api/mtk/SmQuery', ['msgid' => implode(',', $ids)]) ); $response = $this->client->sendRequest($request); @@ -181,8 +181,8 @@ public function queryMessageStatus(array $ids) public function cancelMessageStatus(array $ids) { $request = $this->client->newRequest( - 'GET', - $this->client->buildUriWithQuery('/SmCancel.asp', ['msgid' => implode(",", $ids)]) + 'POST', + $this->client->buildUriWithQuery('/api/mtk/SmCancel', ['msgid' => implode(",", $ids)]) ); $response = $this->client->sendRequest($request);