src/Client.php
/**
     * Updates a web hook
     *
     * @param Model\WebHook $webHook The web hook
     * @return bool True if the web hook was updated
     *
     * @throws QuotaExceededException If the maximum number of calls per second exceeded
     * @throws InvalidArgumentException If the web hook has no id
     * @throws Exception If the response cannot be parsed
     */
Updates a web hook
@param Model\WebHook $webHook The web hook
@return bool True if the web hook was updated

@throws QuotaExceededException If the maximum number of calls per second exceeded
@throws InvalidArgumentException If the web hook has no id
@throws Exception If the response cannot be parsed
Updates a web hook @param Model \ WebHook $webHook The web hook @return bool True if the web hook was updated @throws QuotaExceededException If the maximum number of calls per second exceeded @throws InvalidArgumentException If the web hook has no id @throws Exception If the response cannot be parsed
public function updateWebHook(Model\WebHook $webHook)
    {
        if ($webHook->id === null) {
            throw new InvalidArgumentException('The id of the webHook cannot be empty');
        }
        $res = $this->requestPUT(
            'webhooks/' . $webHook->id,
            $this->jom->serialize($webHook),
            Model\WebHook::class
        );
        return $res === null;
    }
public function updateWebHook ( Model \ WebHook $ webHook ) { if ( $ webHook -> id === null ) { throw new InvalidArgumentException ( 'The id of the webHook cannot be empty' ) ; } $ res = $ this -> requestPUT ( 'webhooks/' . $ webHook -> id , $ this -> jom -> serialize ( $ webHook ) , Model \ WebHook :: class ) ; return $ res === null ; }
Updates a web hook
 @param Model\WebHook $webHook The web hook
 @return bool True if the web hook was updated
Updates a web hook @param Model \ WebHook $webHook The web hook @return bool True if the web hook was updated