Documentation

WidgetApi extends UuidCompleteResourceApi

V3ApiBase

Add constructors and some basic scaffolding that will work for all API classes regardless of which endpoints they implement

Table of Contents

__construct()  : mixed
create()  : void
get()  : WidgetResponse
getAll()  : WidgetsResponse
getClient()  : Client
getParentResourceId()  : int|null
getResourceId()  : int|null
getUuid()  : string
multipleResourceUrl()  : string
setUuid()  : void
singleResourceUrl()  : string
update()  : void

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

getAll()

public getAll([array<string|int, mixed> $filters = [] ], int $page[, int $limit = 250 ]) : WidgetsResponse
Parameters
$filters : array<string|int, mixed> = []
$page : int
$limit : int = 250
Return values
WidgetsResponse

getParentResourceId()

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

getResourceId()

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

multipleResourceUrl()

public multipleResourceUrl() : string
Return values
string

setUuid()

public setUuid(string $uuid) : void
Parameters
$uuid : string
Return values
void

singleResourceUrl()

public singleResourceUrl() : string
Return values
string

Search results