Overview

Namespaces

  • LINE
    • LINEBot
      • Constant
      • Event
        • MessageEvent
        • Parser
      • Exception
      • HTTPClient
      • ImagemapActionBuilder
      • MessageBuilder
        • Imagemap
        • TemplateBuilder
      • TemplateActionBuilder

Classes

  • Response
  • SignatureValidator

Interfaces

  • HTTPClient
  • ImagemapActionBuilder
  • MessageBuilder
  • TemplateActionBuilder
  • Overview
  • Namespace
  • Class

Class SignatureValidator

A validator class of signature.

Namespace: LINE\LINEBot
Package: LINE\LINEBot
Located at LINEBot/SignatureValidator.php
Methods summary
public static boolean
# validateSignature( string $body, string $channelSecret, string $signature )

Validate request with signature.

Validate request with signature.

Parameters

$body
Request body.
$channelSecret
Your channel secret.
$signature
Signature (probably retrieve from HTTP header).

Returns

boolean
Request is valid or not.

Throws

LINE\LINEBot\Exception\InvalidSignatureException
When empty signature is given.
line-bot-sdk-php API documentation generated by ApiGen