コード例 #1
0
ファイル: BasePayPalService.cs プロジェクト: kashyapkk/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
        /// <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);
        }
コード例 #3
0
ファイル: BasePayPalService.cs プロジェクト: abawany/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);
     return apiService.makeRequest(method, requestPayload, apiUsername,
                             this.AccessToken, this.AccessTokenSecret);
 }