Documentation

ProductMetafieldsApi extends ResourceApi
in package

Product Metafields API

Usage:

$api = new BigCommerce\ApiV3\Client($_ENV['hash'], $_ENV['CLIENT_ID'], $_ENV['ACCESS_TOKEN']);

// Get All Metafields
$metafields = $api->catalog()->product(1)->metafields();

// Delete a single Metafield
$api->catalog()->product(1)->metafield($metafields[0]->id)->delete();
Tags
see
https://developer.bigcommerce.com/api-reference/store-management/catalog/product-metafields/getproductmetafieldsbyproductid

Table of Contents

__construct()  : mixed
create()  : ProductMetafieldResponse
delete()  : ResponseInterface
get()  : ProductMetafieldResponse
getAll()  : ProductMetafieldsResponse
getClient()  : Client
getParentResourceId()  : int|null
getResourceId()  : int|null
multipleResourceUrl()  : string
singleResourceUrl()  : string
update()  : ProductMetafieldResponse

Methods

__construct()

public __construct(Client $client[, int|null $resourceId = null ][, int|null $parentResourceId = null ]) : mixed
Parameters
$client : Client
$resourceId : int|null = null
$parentResourceId : int|null = null
Tags
Return values
mixed

delete()

public delete() : ResponseInterface
Tags
Return values
ResponseInterface

getParentResourceId()

public getParentResourceId() : int|null
Tags
Return values
int|null

getResourceId()

public getResourceId() : int|null
Tags
Return values
int|null

multipleResourceUrl()

public abstract multipleResourceUrl() : string
Tags
Return values
string

singleResourceUrl()

public abstract singleResourceUrl() : string
Tags
Return values
string

        

Search results