You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
1.0 KiB
22 lines
1.0 KiB
using System.Net.Http;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace OpenApi
|
|
{
|
|
public interface IClientProxy
|
|
{
|
|
Task<ApiResponse<TResult>> GetAsync<TResult>(string url, string appKey, string appSecret);
|
|
|
|
Task<ApiResponse<TResult>> DeleteAsync<TResult>(string url, string appKey, string appSecret);
|
|
|
|
Task<ApiResponse<TResult>> PutAsync<TRequest, TResult>(string url, string appKey, string appSecret, TRequest request);
|
|
|
|
Task<ApiResponse<TResult>> PostAsync<TRequest, TResult>(string url, string appKey, string appSecret, TRequest request);
|
|
|
|
Task<ApiResponse<TResult>> RequestAsync<TResult>(string url, string appKey, string appSecret, HttpMethod httpMethod);
|
|
|
|
Task<ApiResponse<TResult>> RequestAsync<TRequest, TResult>(string url, string appKey, string appSecret, TRequest request, HttpMethod httpMethod);
|
|
|
|
Task<ApiResponse<TResult>> RequestAsync<TRequest, TResult>(HttpClient client, string url, string appKey, string appSecret, TRequest request, HttpMethod httpMethod);
|
|
}
|
|
}
|
|
|