public GetFeedbackResponse GetFeedback(GetFeedbackRequest request) { string baseUrl = ConfigurationManager.AppSettings["EBayFeedbackApiUrl"]; string appId = ConfigurationManager.AppSettings["AppID"]; string userToken = ConfigurationManager.AppSettings["UserToken"]; return ExecuteRequest<GetFeedbackResponse>(RequestType.GET_STORE_FEEDBACK, appId, baseUrl, JsonConvert.SerializeObject(request), userToken, "POST"); }
public string GetFeedback() { GetFeedbackRequest storeRequest = new GetFeedbackRequest(); Store store = new Store(); storeRequest.FeedbackType = FeedbackTypeCodeType.FeedbackReceived; storeRequest.DetailLevel = DetailLevelCodeType.ReturnAll; var response = store.GetFeedback(storeRequest); if (response == null) { response = new GetFeedbackResponse(); } if (response.FeedbackDetailArray == null) { response.FeedbackDetailArray = new FeedbackDetailType[] { }; } return JsonConvert.SerializeObject(response); }