Beispiel #1
0
        public async Task <TResponse> PostUrlEncoded <TResponse>(
            string endpoint,
            Dictionary <string, string> urlParameters)
        {
            if (urlParameters == null)
            {
                urlParameters = new Dictionary <string, string>();
            }

            var apiKey    = _options.Value.ApiKey;
            var signature = _signatureProvider.SignRequest(
                endpoint,
                ref urlParameters,
                _options.Value.ApiSecret);

            var headers = new Dictionary <string, string>
            {
                { "API-Key", apiKey },
                { "API-Sign", signature }
            };

            return(await base.PostUrlEncoded <TResponse>(endpoint, urlParameters, headers));
        }