$handlers
$handlers : array<mixed,string>
Associative array of LTI request types and URLs to handle that type of request
A simple LTI Tool Provider
createConsumer(string $name, string $key = false, string $secret = false) : void
Create a new tool consumer, optionally with specific key and shared secret.
string | $name | Human-readable Tool Consumer name (e.g. "My School Canvas") |
string | $key | (Optional) A unique key to identify this consumer within the database |
string | $secret | (Optional) A shared secret to authenticate this tool consumer |
setHandlerURL(string|array<mixed,string> $requestType_or_list, string $url = null)
Update request-type/script-handler pairings
This anticipates either a pair of strings or an associative array of pairs
['requestType' => 'URL of script handling this request']
string|array<mixed,string> | $requestType_or_list | |
string | $url | Ignored if |