C# Class PayPal.RESTAPICallPreHandler

RESTApiCallPreHandler requires a configuration system to function properly. Pass a config Dictionary for dynamic configuration.
Inheritance: IAPICallPreHandler
Mostra file Open project: paypal/sdk-core-dotnet Class Usage Examples

Public Properties

Property Type Description
pLoad string

Public Methods

Method Description
GetCredential ( ) : PayPal.Authentication.ICredential
GetEndpoint ( ) : string
GetHeaderMap ( ) : string>.Dictionary
GetPayload ( ) : string
RESTAPICallPreHandler ( string>.Dictionary config ) : System

RESTAPICallPreHandler taking dynamic configuration Dictionary

RESTAPICallPreHandler ( string>.Dictionary config, string>.Dictionary headersMap ) : System

RESTAPICallPreHandler taking dynamic configuration Dictionary and HTTP Headers Dictionary

Protected Methods

Method Description
FormUserAgentHeader ( ) : string>.Dictionary

Override this method to customize User-Agent header value

GetProcessedEndPoint ( ) : string

Override this method to return default behavior for endpoint fetching

GetProcessedHeadersMap ( ) : string>.Dictionary

Overrided this method to return HTTP headers

GetProcessedPayload ( ) : string

Override this method to post process the payload. The payload is returned unaltered as a default behaviour

Private Methods

Method Description
EncodeToBase64 ( string clientID, string clientSecret ) : String
GetClientID ( ) : String
GetClientSecret ( ) : String

Method Details

FormUserAgentHeader() protected method

Override this method to customize User-Agent header value
protected FormUserAgentHeader ( ) : string>.Dictionary
return string>.Dictionary

GetCredential() public method

public GetCredential ( ) : PayPal.Authentication.ICredential
return PayPal.Authentication.ICredential

GetEndpoint() public method

public GetEndpoint ( ) : string
return string

GetHeaderMap() public method

public GetHeaderMap ( ) : string>.Dictionary
return string>.Dictionary

GetPayload() public method

public GetPayload ( ) : string
return string

GetProcessedEndPoint() protected method

Override this method to return default behavior for endpoint fetching
protected GetProcessedEndPoint ( ) : string
return string

GetProcessedHeadersMap() protected method

Overrided this method to return HTTP headers
protected GetProcessedHeadersMap ( ) : string>.Dictionary
return string>.Dictionary

GetProcessedPayload() protected method

Override this method to post process the payload. The payload is returned unaltered as a default behaviour
protected GetProcessedPayload ( ) : string
return string

RESTAPICallPreHandler() public method

RESTAPICallPreHandler taking dynamic configuration Dictionary
public RESTAPICallPreHandler ( string>.Dictionary config ) : System
config string>.Dictionary Dictionary for dynamic configuration
return System

RESTAPICallPreHandler() public method

RESTAPICallPreHandler taking dynamic configuration Dictionary and HTTP Headers Dictionary
public RESTAPICallPreHandler ( string>.Dictionary config, string>.Dictionary headersMap ) : System
config string>.Dictionary Dictionary for dynamic configuration
headersMap string>.Dictionary Dictionary for HTTP Headers
return System

Property Details

pLoad public_oe property

public string pLoad
return string