C# Class PayPal.RESTAPICallPreHandler

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

Méthodes publiques

Свойство Type Description
pLoad string

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode Description
EncodeToBase64 ( string clientID, string clientSecret ) : String
GetClientID ( ) : String
GetClientSecret ( ) : String

Method Details

FormUserAgentHeader() protected méthode

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

GetCredential() public méthode

public GetCredential ( ) : PayPal.Authentication.ICredential
Résultat PayPal.Authentication.ICredential

GetEndpoint() public méthode

public GetEndpoint ( ) : string
Résultat string

GetHeaderMap() public méthode

public GetHeaderMap ( ) : string>.Dictionary
Résultat string>.Dictionary

GetPayload() public méthode

public GetPayload ( ) : string
Résultat string

GetProcessedEndPoint() protected méthode

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

GetProcessedHeadersMap() protected méthode

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

GetProcessedPayload() protected méthode

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

RESTAPICallPreHandler() public méthode

RESTAPICallPreHandler taking dynamic configuration Dictionary
public RESTAPICallPreHandler ( string>.Dictionary config ) : System
config string>.Dictionary Dictionary for dynamic configuration
Résultat System

RESTAPICallPreHandler() public méthode

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
Résultat System

Property Details

pLoad public_oe property

public string pLoad
Résultat string