src/LINEBot/HTTPClient/CurlHTTPClient.php
public function post($url, array $data, array $headers = null)
    {
        $headers = is_null($headers) ? ['Content-Type: application/json; charset=utf-8'] : $headers;
        return $this->sendRequest('POST', $url, $headers, $data);
    }
public function post($url, array $data, array $headers = null)
    {
        $headers = is_null($headers) ? ['Content-Type: application/json; charset=utf-8'] : $headers;
        return $this->sendRequest('POST', $url, $headers, $data);
    }
public function post ( $ url , array $ data , array $ headers = null ) { $ headers = is_null ( $ headers ) ? [ 'Content-Type: application/json; charset=utf-8' ] : $ headers ; return $ this -> sendRequest ( 'POST' , $ url , $ headers , $ data ) ; }
Sends POST request to LINE Messaging API.

@param string $url Request URL.
@param array $data Request body or resource path.
@param array|null $headers Request headers.
@return Response Response of API request.
@throws CurlExecutionException
Sends POST request to LINE Messaging API .