PHP Class PayPal\Core\PayPalHttpConnection

Requires the PHP curl module to be enabled. See for full requirements the PHP manual: http://php.net/curl
Show file Open project: paypal/rest-api-sdk-php Class Usage Examples

Public Methods

Method Description
__construct ( PayPalHttpConfig $httpConfig, array $config ) Default Constructor
execute ( string $data ) : mixed Executes an HTTP request

Private Methods

Method Description
getHttpHeaders ( ) : array Gets all Http Headers

Method Details

__construct() public method

Default Constructor
public __construct ( PayPalHttpConfig $httpConfig, array $config )
$httpConfig PayPalHttpConfig
$config array

execute() public method

Executes an HTTP request
public execute ( string $data ) : mixed
$data string query string OR POST content as a string
return mixed