Example #1
0
        public async Task <TResponse> SendFormAsync <TResponse>(string method, string endpoint, IReadOnlyDictionary <string, object> formArgs, RequestOptions options = null)
        {
            var request = new FormRestRequest(RestClient, method, endpoint, formArgs, options);

            return(Deserialize <TResponse>(await SendInternalAsync(request).ConfigureAwait(false)));
        }
Example #2
0
        public async Task SendFormAsync(string method, string endpoint, IReadOnlyDictionary <string, object> formArgs, RequestOptions options = null)
        {
            var request = new FormRestRequest(RestClient, method, endpoint, formArgs, options ?? RequestOptions.Default);

            await SendInternalAsync(request).ConfigureAwait(false);
        }