Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

Differences Between: [Versions 400 and 403] [Versions 401 and 403]

   1  <?php
   2  
   3  namespace Packback\Lti1p3\Interfaces;
   4  
   5  use GuzzleHttp\Psr7\Response;
   6  
   7  interface ILtiServiceConnector
   8  {
   9      public function getAccessToken(ILtiRegistration $registration, array $scopes);
  10  
  11      public function makeRequest(IServiceRequest $request);
  12  
  13      public function getResponseBody(Response $request): ?array;
  14  
  15      public function makeServiceRequest(
  16          ILtiRegistration $registration,
  17          array $scopes,
  18          IServiceRequest $request,
  19          bool $shouldRetry = true
  20      ): array;
  21  
  22      public function getAll(
  23          ILtiRegistration $registration,
  24          array $scopes,
  25          IServiceRequest $request,
  26          string $key
  27      ): array;
  28  
  29      public function setDebuggingMode(bool $enable): void;
  30  }