using System.Net.Http; using System.Threading.Tasks; namespace OpenApi { public interface IClientProxy { Task> GetAsync(string url, string appKey, string appSecret); Task> DeleteAsync(string url, string appKey, string appSecret); Task> PutAsync(string url, string appKey, string appSecret, TRequest request); Task> PostAsync(string url, string appKey, string appSecret, TRequest request); Task> RequestAsync(string url, string appKey, string appSecret, HttpMethod httpMethod); Task> RequestAsync(string url, string appKey, string appSecret, TRequest request, HttpMethod httpMethod); Task> RequestAsync(HttpClient client, string url, string appKey, string appSecret, TRequest request, HttpMethod httpMethod); } }