Browse Source

added a SendAsync method to IRestClient that takes an IEnumerable<KeyValuePair<string?, string?>> in order to be able to form a FormUrlEncodedContent which you need for getting the tokens.

pull/1806/head
emorell96 4 years ago
parent
commit
c242d81af9
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/Discord.Net.Core/Net/Rest/IRestClient.cs

+ 1
- 0
src/Discord.Net.Core/Net/Rest/IRestClient.cs View File

@@ -33,6 +33,7 @@ namespace Discord.Net.Rest
/// <returns></returns> /// <returns></returns>
Task<RestResponse> SendAsync(string method, string endpoint, CancellationToken cancelToken, bool headerOnly = false, string reason = null); Task<RestResponse> SendAsync(string method, string endpoint, CancellationToken cancelToken, bool headerOnly = false, string reason = null);
Task<RestResponse> SendAsync(string method, string endpoint, string json, CancellationToken cancelToken, bool headerOnly = false, string reason = null); Task<RestResponse> SendAsync(string method, string endpoint, string json, CancellationToken cancelToken, bool headerOnly = false, string reason = null);
Task<RestResponse> SendAsync(string method, string endpoint, IEnumerable<KeyValuePair<string?, string?>> formDataContent, CancellationToken cancelToken, bool headerOnly, string reason = null);
Task<RestResponse> SendAsync(string method, string endpoint, IReadOnlyDictionary<string, object> multipartParams, CancellationToken cancelToken, bool headerOnly = false, string reason = null); Task<RestResponse> SendAsync(string method, string endpoint, IReadOnlyDictionary<string, object> multipartParams, CancellationToken cancelToken, bool headerOnly = false, string reason = null);
} }
} }

Loading…
Cancel
Save