コード例 #1
0
ファイル: BasePayPalService.cs プロジェクト: tgtamil/SDKs
 /// <summary>
 /// Call method exposed to user
 /// </summary>
 /// <param name="method"></param>
 /// <param name="requestPayload"></param>
 /// <returns></returns>
 public string Call(string method, string requestPayload, string apiUserName)
 {
     APIService apiService = new APIService(ServiceName, ServiceVersion);
     this.LastRequest = requestPayload;
     this.LastResponse =  apiService.MakeRequest(method, requestPayload, apiUserName,
                             this.AccessToken, this.AccessTokenSecret);
     return this.LastResponse;
 }
コード例 #2
0
ファイル: BasePayPalService.cs プロジェクト: tgtamil/SDKs
        /// <summary>
        /// Call method exposed to user
        /// </summary>
        /// <param name="method"></param>
        /// <param name="requestPayload"></param>
        /// <returns></returns>
        public string Call(string method, string requestPayload, string apiUserName)
        {
            APIService apiService = new APIService(ServiceName, ServiceVersion);

            this.LastRequest  = requestPayload;
            this.LastResponse = apiService.MakeRequest(method, requestPayload, apiUserName,
                                                       this.AccessToken, this.AccessTokenSecret);
            return(this.LastResponse);
        }