public function InstapageCmsPluginWPConnector::remoteGet in Instapage plugin 8.3
Same name and namespace in other branches
- 7.3 core/connectors/InstapageCmsPluginWPConnector.php \InstapageCmsPluginWPConnector::remoteGet()
Performs remote GET request.
@uses InstapageCmsPluginWPConnector::remoteRequest().
Parameters
string $url URL for the request.:
array $data Data that will be passed in the request.:
array $headers Headers for the request.:
Return value
array Request result in a form of associative array.
1 call to InstapageCmsPluginWPConnector::remoteGet()
- InstapageCmsPluginWPConnector::isAPIAccessible in core/
connectors/ InstapageCmsPluginWPConnector.php - Checks if API is accessible @uses self::remoteGet()
File
- core/
connectors/ InstapageCmsPluginWPConnector.php, line 280
Class
- InstapageCmsPluginWPConnector
- Class that utilizes native WordPress functions to perform actions like remote requests and DB operations.
Code
public function remoteGet($url, $data, $headers = array()) {
$url = InstapageCmsPluginConnector::getURLWithSelectedProtocol($url);
return $this
->remoteRequest($url, $data, $headers, 'GET');
}