C# 클래스 PayPal.Api.APIContext

APIContext is used when making HTTP calls to the PayPal REST API.
파일 보기 프로젝트 열기: paypal/PayPal-NET-SDK 1 사용 예제들

공개 메소드들

메소드 설명
APIContext ( ) : System

Initializes a new instance of APIContext that is used when making HTTP calls to the PayPal REST API.

APIContext ( string accessToken ) : System

Initializes a new instance of APIContext that is used when making HTTP calls to the PayPal REST API; as well as sets and verifies the state of an accessToken.

APIContext ( string accessToken, string requestId ) : System

Initializes a new instance of APIContext that is used when making HTTP calls to the PayPal REST API; as well as sets and verifies the states of an accessToken and requestId.

GetConfigWithDefaults ( ) : string>.Dictionary

Gets the stored configuration and merges it with the application's default config.

ResetRequestId ( ) : void

Resets the request ID used for ensuring idempotency when making a REST API call.

메소드 상세

APIContext() 공개 메소드

Initializes a new instance of APIContext that is used when making HTTP calls to the PayPal REST API.
public APIContext ( ) : System
리턴 System

APIContext() 공개 메소드

Initializes a new instance of APIContext that is used when making HTTP calls to the PayPal REST API; as well as sets and verifies the state of an accessToken.
public APIContext ( string accessToken ) : System
accessToken string OAuth access token to use when making API requests
리턴 System

APIContext() 공개 메소드

Initializes a new instance of APIContext that is used when making HTTP calls to the PayPal REST API; as well as sets and verifies the states of an accessToken and requestId.
public APIContext ( string accessToken, string requestId ) : System
accessToken string OAuth access token to use when making API requests
requestId string ID used for ensuring idempotency when making a REST API call
리턴 System

GetConfigWithDefaults() 공개 메소드

Gets the stored configuration and merges it with the application's default config.
public GetConfigWithDefaults ( ) : string>.Dictionary
리턴 string>.Dictionary

ResetRequestId() 공개 메소드

Resets the request ID used for ensuring idempotency when making a REST API call.
public ResetRequestId ( ) : void
리턴 void