PayPal.Api.WebProfile.Get C# (CSharp) Method

Get() public static method

Shows details for a web experience profile, by ID.
public static Get ( APIContext apiContext, string profileId ) : WebProfile
apiContext APIContext APIContext used for the API call.
profileId string The ID of the profile for which to show details.
return WebProfile
        public static WebProfile Get(APIContext apiContext, string profileId)
        {
            // Validate the arguments to be used in the request
            ArgumentValidator.ValidateAndSetupAPIContext(apiContext);
            ArgumentValidator.Validate(profileId, "profileId");

            // Configure and send the request
            var pattern = "v1/payment-experience/web-profiles/{0}";
            var resourcePath = SDKUtil.FormatURIPath(pattern, new object[] { profileId });
            return PayPalResource.ConfigureAndExecute<WebProfile>(apiContext, HttpMethod.GET, resourcePath);
        }