LLMS_Abstract_API_Handler::__construct( stirng $resource, array $data, string $method = null )
Construct an API call, parameters are passed to private call()
function
Parameters Parameters
- $resource
-
(stirng) (Required) url endpoint or resource to make a request to
- $data
-
(array) (Required) array of data to pass in the body of the request
- $method
-
(string) (Optional) method of request (POST, GET, DELETE, PUT, etc...)
Default value: null
Return Return
(void)
Source Source
File: includes/abstracts/llms.abstract.api.handler.php
public function __construct( $resource, $data, $method = null ) { $this->call( $resource, $data, $method ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.11.2 | Introduced. |