cerpus/edlib-api-client

This package is abandoned and no longer maintained. The author suggests using the cerpus/edlib-resource-kit package instead.

Client for Cerpus Edlib Common API

v3.3.1 2022-02-21 14:16 UTC

This package is auto-updated.

Last update: 2024-09-27 09:36:11 UTC


README

Authenticaton

See the Edlib API Documentation for steps on obtaining application id and token. Set the credentials either by using the setCredentials method, or by creating an instance of EdlibApiClient and providing them in the config. Which headers to set are described in the documentation in the Make authenticated requests section.

Available endpoints

setCollaboratorContext

Set or update collaborator context.
https://docs.edlib.com/docs/developers/api-documentation/application-api/collaborator-contexts

Parameters:
    CollaboratorContext $context

Return:
    GuzzleHttp\Promise\PromiseInterface

generateH5pFromQa

Generate H5P from QA.
https://docs.edlib.com/docs/developers/api-documentation/application-api/generate-h5p-from-qa

Parameters:
    array $body

Return:
    GuzzleHttp\Promise\PromiseInterface