Aller au contenu

omnischolar/orcid Référence de l’API

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

Lue dans les fichiers PHP du paquet au commit b41d611cf260 : 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é.

Omnischolar\Orcid

  • OrcidSource class

    ORCID's public API (pub.orcid.org/v3.0, no key): who a researcher says they are - names, biography, keywords, pages - their CV - employments, education, qualifications, distinctions, invited positions, memberships, services - and the works on their record, each in the version they prefer, with its contributors.

    6 methods · 1 constant

  • OrcidSourceFactory class

    ORCID's public API: identity, CV, declared works - no key.

    1 option

Omnischolar\Orcid

OrcidSource class

final class OrcidSource extends HttpSource OrcidSource.php:31

ORCID's public API (pub.orcid.org/v3.0, no key): who a researcher says they are - names, biography, keywords, pages - their CV - employments, education, qualifications, distinctions, invited positions, memberships, services - and the works on their record, each in the version they prefer, with its contributors.

Only what the researcher made public is served. ORCID searches people, not works: search() is not supported.

const BASE_URI = 'https://pub.orcid.org/v3.0/'

OrcidSource::__construct()

public function __construct(HttpClientInterface $http, string $baseUri = self::BASE_URI, array $headers = [], float $throttle = 0.0)

OrcidSource::getName()

public function getName(): string

OrcidSource::capabilities()

public function capabilities(): array

OrcidSource::author()

public function author(Identifier|string $author): ?Author

OrcidSource::works()

public function works(Identifier|string $author, ?Query $query = null): Page

The works on the record - one per group, the version the researcher prefers - newest first, then detailed page by page (contributors, journal, description). ORCID lists them all at once: the query's years and types are applied here, and the cursor is an offset.

OrcidSource::work()

public function work(Identifier|string $id): ?Work

One work on a record: "0000-0002-1825-0097/work/9543020" (or "0000-0002-1825-0097:9543020").

OrcidSourceFactory class

final class OrcidSourceFactory extends SourceFactory OrcidSourceFactory.php:17

ORCID's public API: identity, CV, declared works - no key.

options: base_uri: 'https://pub.orcid.org/v3.0/' # the sandbox: https://pub.sandbox.orcid.org/v3.0/ throttle: 0 # seconds between two calls

Options

OptionDefault
base_uriOrcidSource::BASE_URI