この関数の適用範囲(スコープ)はプライベートのため、プラグインやテーマからはご利用できません。
関数
Client::getRequestAuthHeaders( string $uri, string $payload = '' )
パラメータ パラメータ
- $uri
(文字列) (必須)
- $payload
(文字列) (任意)
ファイル: src/Api/Client.php
private function getRequestAuthHeaders($uri, $payload = '') { $nonce = gmdate('c'); $data = $this->secret . $uri . $payload . $nonce; $signature = base64_encode(hash_hmac('sha256', $data, $this->secret, true)); return [ 'X-LINE-Authorization' => $signature, 'X-LINE-Authorization-Nonce' => $nonce, ]; }