LINE Messaging API SDK for PHP

HTTPClient

The interface that represents HTTP client of LINE Messaging API.

If you want to switch using HTTP client, please implement this.

Table of Contents

delete()  : Response
Sends DELETE request to LINE Messaging API.
get()  : Response
Sends GET request to LINE Messaging API.
post()  : Response
Sends POST request to LINE Messaging API.
put()  : Response
Sends PUT request to LINE Messaging API.

Methods

delete()

Sends DELETE request to LINE Messaging API.

public delete(string $url) : Response
Parameters
$url : string

Request URL.

Return values
Response

Response of API request.

get()

Sends GET request to LINE Messaging API.

public get(string $url[, array<string|int, mixed> $data = [] ][, array<string|int, mixed> $headers = [] ]) : Response
Parameters
$url : string

Request URL.

$data : array<string|int, mixed> = []

URL parameters.

$headers : array<string|int, mixed> = []
Return values
Response

Response of API request.

post()

Sends POST request to LINE Messaging API.

public post(string $url, array<string|int, mixed> $data[, array<string|int, mixed>|null $headers = null ]) : Response
Parameters
$url : string

Request URL.

$data : array<string|int, mixed>

Request body.

$headers : array<string|int, mixed>|null = null

Request headers.

Return values
Response

Response of API request.

put()

Sends PUT request to LINE Messaging API.

public put(string $url, array<string|int, mixed> $data[, array<string|int, mixed>|null $headers = null ]) : Response
Parameters
$url : string

Request URL.

$data : array<string|int, mixed>

Request body.

$headers : array<string|int, mixed>|null = null

Request headers.

Return values
Response

Response of API request.

Search results