示例#1
0
        public Task <HttpResponseMessage> GetFile(string type, DateTime?date = null)
        {
            var dict = new Dictionary <string, string>
            {
                { "type", type }
            };

            if (date.HasValue)
            {
                dict.Add("date", date.Value.ToUniversalTime().ToString("yyyy-MM-dd"));
            }

            return(_client.MakeRawUrlEncodedCall("admin.analytics.getFile", dict));
        }