cerpus / edlib-api-client
Client for Cerpus Edlib Common API
Installs: 2 204
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: >=7.4
- ext-json: *
- guzzlehttp/guzzle: ^6.3.3|^7.0
- guzzlehttp/promises: ^1.4
Requires (Dev)
- phpunit/phpunit: 9.5.10
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