PHP 클래스 PayPal\Common\PayPalResourceModel

상속: extends PayPalModel, implements PayPal\Rest\IResource
파일 보기 프로젝트 열기: paypal/rest-api-sdk-php

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
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

메소드 상세

executeCall() 보호된 정적인 메소드

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
리턴 string json response of the object

updateAccessToken() 공개 메소드

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