PHP Class PayPal\Common\PayPalResourceModel

Inheritance: extends PayPalModel, implements PayPal\Rest\IResource
Show file Open project: paypal/rest-api-sdk-php

Public Methods

Method Description
addLink ( PayPal\Api\Links $links ) Append Links to the list.
getLink ( $rel )
getLinks ( ) : PayPal\Api\Links[] Gets Links
removeLink ( PayPal\Api\Links $links ) Remove Links from the list.
setLinks ( PayPal\Api\Links[] $links ) Sets Links
updateAccessToken ( string | null $refreshToken, ApiContext $apiContext ) : void Updates Access Token using long lived refresh token

Protected Methods

Method Description
executeCall ( string $url, string $method, string $payLoad, array $headers = [], ApiContext $apiContext = null, PayPalRestCall $restCall = null, array $handlers = ['PayPal\Handler\RestHandler'] ) : string Execute SDK Call to Paypal services

Method Details

executeCall() protected static method

Execute SDK Call to Paypal services
protected static executeCall ( string $url, string $method, string $payLoad, array $headers = [], ApiContext $apiContext = null, PayPalRestCall $restCall = null, array $handlers = ['PayPal\Handler\RestHandler'] ) : string
$url string
$method string
$payLoad string
$headers array
$apiContext PayPal\Rest\ApiContext
$restCall PayPal\Transport\PayPalRestCall
$handlers array
return string json response of the object

updateAccessToken() public method

Updates Access Token using long lived refresh token
public updateAccessToken ( string | null $refreshToken, ApiContext $apiContext ) : void
$refreshToken string | null
$apiContext PayPal\Rest\ApiContext
return void