for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ShopifyClient\Resource;
use ShopifyClient\Action\Action;
use ShopifyClient\Request;
/**
* https://help.shopify.com/api/reference/webhook
*
* @method create(array $parameters = [])
* @method get(float $parentId)
* @method all(float $parentId)
* @method update(float $parentId, array $parameters = [])
* @method delete(float $parentId)
*/
class Webhook extends AbstractResource implements Resource
{
public function __construct(Request $request)
parent::__construct($request);
$this->actions->add(
'create',
new Action(
Request::METHOD_POST,
'webhooks.json',
'webhook',
'webhook'
)
);
'get',
Request::METHOD_GET,
'webhooks/%s.json',
'all',
'webhooks',
'webhooks'
'count',
'webhooks/count.json',
'count'
'update',
Request::METHOD_PUT,
'delete',
Request::METHOD_DELETE,
'webhooks/%s.json'
}