/// <summary> /// Call method exposed to user /// </summary> /// <param name="apiCallHandler"></param> /// <returns></returns> public string Call(IAPICallPreHandler apiCallHandler) { APIService apiServ = new APIService(this.config); this.lastRequest = apiCallHandler.GetPayLoad(); this.lastResponse = apiServ.MakeRequestUsing(apiCallHandler); return this.lastResponse; }
/// <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; }
/// <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); }