MangoPay/ApiHooks.php
public function Create($hook, $idempotencyKey = null)
    {
        return $this->CreateObject('hooks_create', $hook, '\MangoPay\Hook', null, null, $idempotencyKey);
    }
public function Create($hook, $idempotencyKey = null)
    {
        return $this->CreateObject('hooks_create', $hook, '\MangoPay\Hook', null, null, $idempotencyKey);
    }
public function Create ( $ hook , $ idempotencyKey = null ) { return $ this -> CreateObject ( 'hooks_create' , $ hook , '\MangoPay\Hook' , null , null , $ idempotencyKey ) ; }
Create new hook
@param Hook $hook
@param string $idempotencyKey Idempotency key for response replication
@return \MangoPay\Hook Hook object returned from API
Create new hook