for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ShopifyClient\Resource;
/**
* https://help.shopify.com/api/reference/article
*/
class Article extends AbstractNestedCountableCrudResource
{
* @var string
protected $resourceParentEndpointPleural = 'blogs';
protected $resourceChildEndpointPleural = 'articles';
protected $resourceChildKeySingular = 'article';
protected $resourceChildKeyPleural = 'articles';
* @param float $id
* @param array $query
* @return array
public function tags(float $id, array $query = [])
$response = $this->request('GET', sprintf('/admin/blogs/%s/articles/tags.json', $id), [
'query' => $query,
]);
return $response['tags'];
}
public function authors()
$response = $this->request('GET', '/admin/articles/authors.json');
return $response['authors'];