PHP 클래스 EventHomes\Api\Webhooks\MandrillWebhookController

상속: extends Illuminate\Routing\Controller
파일 보기 프로젝트 열기: eventhomes/laravel-mandrillhooks

공개 메소드들

메소드 설명
generateSignature ( string $webhook_key, string $url, array $params ) https://mandrill.zendesk.com/hc/en-us/articles/205583257-How-to-Authenticate-Webhook-Requests Generates a base64-encoded signature for a Mandrill webhook request.
handleWebHook ( Illuminate\Http\Request $request ) : Response Handle the Mandrill webhook and call method if available

비공개 메소드들

메소드 설명
getJsonPayloadFromRequest ( $request ) : array Pull the Mandrill payload from the json
validateSignature ( Illuminate\Http\Request $request ) : boolean Validates the signature of a mandrill request if key is set

메소드 상세

generateSignature() 공개 메소드

https://mandrill.zendesk.com/hc/en-us/articles/205583257-How-to-Authenticate-Webhook-Requests Generates a base64-encoded signature for a Mandrill webhook request.
public generateSignature ( string $webhook_key, string $url, array $params )
$webhook_key string the webhook's authentication key
$url string the webhook url
$params array the request's POST parameters

handleWebHook() 공개 메소드

Handle the Mandrill webhook and call method if available
public handleWebHook ( Illuminate\Http\Request $request ) : Response
$request Illuminate\Http\Request
리턴 Symfony\Component\HttpFoundation\Response