PHP Class PayPal\Transport\PayPalRestCall

显示文件 Open project: paypal/rest-api-sdk-php Class Usage Examples

Public Methods

Method Description
__construct ( ApiContext $apiContext ) Default Constructor
execute ( array $handlers = [], string $path, string $method, string $data = '', array $headers = [] ) : mixed

Method Details

__construct() public method

Default Constructor
public __construct ( ApiContext $apiContext )
$apiContext PayPal\Rest\ApiContext

execute() public method

public execute ( array $handlers = [], string $path, string $method, string $data = '', array $headers = [] ) : mixed
$handlers array Array of handlers
$path string Resource path relative to base service endpoint
$method string HTTP method - one of GET, POST, PUT, DELETE, PATCH etc
$data string Request payload
$headers array HTTP headers
return mixed