ProductVideosApi extends ResourceApi
V3ApiBase
Add constructors and some basic scaffolding that will work for all API classes regardless of which endpoints they implement
Table of Contents
- RESOURCE_NAME = 'videos'
- VIDEO_ENDPOINT = 'catalog/products/%d/videos/%s'
- VIDEOS_ENDPOINT = 'catalog/products/%d/videos'
- __construct() : mixed
- get() : ProductVideoResponse
- getAll() : ProductVideosResponse
- getClient() : Client
- getParentResourceId() : int|null
- getResourceId() : int|null
Constants
RESOURCE_NAME
public
mixed
RESOURCE_NAME
= 'videos'
VIDEO_ENDPOINT
public
mixed
VIDEO_ENDPOINT
= 'catalog/products/%d/videos/%s'
VIDEOS_ENDPOINT
public
mixed
VIDEOS_ENDPOINT
= 'catalog/products/%d/videos'
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
Return values
mixed —get()
public
get() : ProductVideoResponse
Return values
ProductVideoResponse —getAll()
public
getAll([array<string|int, mixed> $filters = [] ][, int $page = 1 ][, int $limit = 250 ]) : ProductVideosResponse
Parameters
- $filters : array<string|int, mixed> = []
- $page : int = 1
- $limit : int = 250
Return values
ProductVideosResponse —getClient()
public
getClient() : Client
Return values
Client —getParentResourceId()
public
getParentResourceId() : int|null
Return values
int|null —getResourceId()
public
getResourceId() : int|null