Bånder

LookupHandler extends Handler
in package

Table of Contents

Properties

$baseUrl  : string
$client  : Client

Methods

__construct()  : mixed
artist()  : Artist|null
Get artist by ID
artistAsync()  : PromiseInterface
Get artist by ID asynchronously
artistReleases()  : array<string|int, mixed>|null
Get artist releases
artistReleasesAsync()  : PromiseInterface
Get artist releases asynchronously
canMakeRequest()  : bool
Check if we can make a Discogs request (not rate limited)
getRateLimitStatus()  : array<string|int, mixed>
Get rate limit status information
label()  : Label|null
Get label by ID
labelAsync()  : PromiseInterface
Get label by ID asynchronously
labelReleases()  : array<string|int, mixed>|null
Get label releases
labelReleasesAsync()  : PromiseInterface
Get label releases asynchronously
master()  : Master|null
Get master release by ID
masterAsync()  : PromiseInterface
Get master release by ID asynchronously
masterVersions()  : array<string|int, mixed>|null
Get master release versions
masterVersionsAsync()  : PromiseInterface
Get master release versions asynchronously
release()  : Release|null
Get release by ID
releaseAsync()  : PromiseInterface
Get release by ID asynchronously
fetchEndpoint()  : array<string|int, mixed>|null
fetchEndpointAsync()  : PromiseInterface

Properties

$baseUrl read-only

protected string $baseUrl

$client read-only

protected Client $client

Methods

__construct()

public __construct(Client $client, string $baseUrl) : mixed
Parameters
$client : Client
$baseUrl : string

artistAsync()

Get artist by ID asynchronously

public artistAsync(int $id) : PromiseInterface
Parameters
$id : int
Return values
PromiseInterface

artistReleases()

Get artist releases

public artistReleases(int $id[, int $page = 1 ][, int $per_page = 50 ]) : array<string|int, mixed>|null
Parameters
$id : int
$page : int = 1
$per_page : int = 50
Return values
array<string|int, mixed>|null

artistReleasesAsync()

Get artist releases asynchronously

public artistReleasesAsync(int $id[, int $page = 1 ][, int $per_page = 50 ]) : PromiseInterface
Parameters
$id : int
$page : int = 1
$per_page : int = 50
Return values
PromiseInterface

canMakeRequest()

Check if we can make a Discogs request (not rate limited)

public canMakeRequest() : bool
Return values
bool

getRateLimitStatus()

Get rate limit status information

public getRateLimitStatus() : array<string|int, mixed>
Return values
array<string|int, mixed>

labelAsync()

Get label by ID asynchronously

public labelAsync(int $id) : PromiseInterface
Parameters
$id : int
Return values
PromiseInterface

labelReleases()

Get label releases

public labelReleases(int $id[, int $page = 1 ][, int $per_page = 50 ]) : array<string|int, mixed>|null
Parameters
$id : int
$page : int = 1
$per_page : int = 50
Return values
array<string|int, mixed>|null

labelReleasesAsync()

Get label releases asynchronously

public labelReleasesAsync(int $id[, int $page = 1 ][, int $per_page = 50 ]) : PromiseInterface
Parameters
$id : int
$page : int = 1
$per_page : int = 50
Return values
PromiseInterface

masterAsync()

Get master release by ID asynchronously

public masterAsync(int $id) : PromiseInterface
Parameters
$id : int
Return values
PromiseInterface

masterVersions()

Get master release versions

public masterVersions(int $id[, int $page = 1 ][, int $per_page = 50 ]) : array<string|int, mixed>|null
Parameters
$id : int
$page : int = 1
$per_page : int = 50
Return values
array<string|int, mixed>|null

masterVersionsAsync()

Get master release versions asynchronously

public masterVersionsAsync(int $id[, int $page = 1 ][, int $per_page = 50 ]) : PromiseInterface
Parameters
$id : int
$page : int = 1
$per_page : int = 50
Return values
PromiseInterface

releaseAsync()

Get release by ID asynchronously

public releaseAsync(int $id) : PromiseInterface
Parameters
$id : int
Return values
PromiseInterface

fetchEndpoint()

protected fetchEndpoint(string $endpoint[, array<string|int, mixed> $params = [] ]) : array<string|int, mixed>|null
Parameters
$endpoint : string
$params : array<string|int, mixed> = []
Return values
array<string|int, mixed>|null

fetchEndpointAsync()

protected fetchEndpointAsync(string $endpoint[, array<string|int, mixed> $params = [] ]) : PromiseInterface
Parameters
$endpoint : string
$params : array<string|int, mixed> = []
Return values
PromiseInterface

        
On this page

Search results