Beispiel #1
0
 /**
  * Retrieve the details of a particular web experience profile by passing the ID of the profile to the request URI.
  *
  * @param string $profileId
  * @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
  * @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls
  * @return WebProfile
  */
 public static function get($profileId, $apiContext = null, $restCall = null)
 {
     ArgumentValidator::validate($profileId, 'profileId');
     $payLoad = "";
     $json = self::executeCall("/v1/payment-experience/web-profiles/{$profileId}", "GET", $payLoad, null, $apiContext, $restCall);
     $ret = new WebProfile();
     $ret->fromJson($json);
     return $ret;
 }