Aller au contenu

omnisong/itunes Référence de l’API

Étage
Fournisseur · Omnisong
Version
1.x
Suite de conformité
non branchée
Vérifié en réel
Son README ne le dit pas
Licence
MIT
composer require omnisong/itunes:1.x-dev

Lue dans les fichiers PHP du paquet au commit f5d97c042141 : ses espaces de noms, classes, interfaces et énumérations, leurs constantes, propriétés et méthodes publiques avec leur PHPDoc, et les options que prennent ses fabriques. Rien n’en est exécuté.

Omnisong\Itunes

  • ItunesCatalog class

    Apple's catalogue through the iTunes Search API (search and lookup, no key): a release by its UPC, an ISRC, an Apple Music URL or its id, with its tracks and their 30-second previews; an artist's albums. It gives no ISRC and no composer, and only the Apple links - the others are Odesli's.

    5 methods · 1 constant

  • ItunesCatalogFactory class

    The iTunes Search API: an artist's albums, their tracks with the 30-second previews, the artwork - no key.

    2 options

Omnisong\Itunes

ItunesCatalog class

final class ItunesCatalog implements CatalogInterface ItunesCatalog.php:26

Apple's catalogue through the iTunes Search API (search and lookup, no key): a release by its UPC, an ISRC, an Apple Music URL or its id, with its tracks and their 30-second previews; an artist's albums. It gives no ISRC and no composer, and only the Apple links - the others are Odesli's.

const BASE_URI = 'https://itunes.apple.com/'

ItunesCatalog::__construct()

public function __construct(readonly HttpClientInterface $http, readonly string $country = 'us', readonly string $baseUri = self::BASE_URI)

ItunesCatalog::getName()

public function getName(): string
public function links(Reference $reference): PlatformLinks

ItunesCatalog::release()

public function release(Reference $reference): ?Release

ItunesCatalog::releases()

public function releases(string $artist, int $limit = 50, ?string $country = null): array

ItunesCatalogFactory class

final class ItunesCatalogFactory extends CatalogFactory ItunesCatalogFactory.php:18

The iTunes Search API: an artist's albums, their tracks with the 30-second previews, the artwork - no key.

options: country: 'de' # the store asked (ISO 3166-1 alpha-2, default us): what is sold there, in its language base_uri: 'https://itunes.apple.com/'

Options

OptionDefault
country'us'
base_uriItunesCatalog::BASE_URI