![]() |
LTI Integration Library
3.1.0
PHP class library for building LTI integrations
|
Class to implement a service. More...
Public Member Functions | |
| __construct ($consumer, $endpoint, $mediaType) | |
| Class constructor. More... | |
| send ($method, $parameters=array(), $body=null) | |
| Send a service request. More... | |
| getHTTPMessage () | |
| Get HTTPMessage object for last request. More... | |
Data Fields | |
| $unsigned = false | |
| Whether service request should be sent unsigned. More... | |
Protected Attributes | |
| $endpoint | |
| Service endpoint. More... | |
Class to implement a service.
Definition at line 17 of file Service.php.
| __construct | ( | $consumer, | |
| $endpoint, | |||
| $mediaType | |||
| ) |
Class constructor.
| ToolConsumer | $consumer | Tool consumer object for this service request |
| string | $endpoint | Service endpoint |
| string | $mediaType | Media type of message body |
Definition at line 62 of file Service.php.
References Service\$endpoint.
| getHTTPMessage | ( | ) |
Get HTTPMessage object for last request.
Definition at line 114 of file Service.php.
| send | ( | $method, | |
$parameters = array(), |
|||
$body = null |
|||
| ) |
Send a service request.
| string | $method | The action type constant (optional, default is GET) |
| array | $parameters | Query parameters to add to endpoint (optional, default is none) |
| string | $body | Body of request (optional, default is null) |
Definition at line 78 of file Service.php.
References Service\$endpoint.
Referenced by Membership\get(), and ToolSettings\get().
|
protected |
Service endpoint.
Definition at line 32 of file Service.php.
Referenced by Membership\__construct(), Service\__construct(), ToolSettings\__construct(), and Service\send().
| bool $unsigned = false |
Whether service request should be sent unsigned.
Definition at line 25 of file Service.php.