コード例 #1
0
 private static T AuthorizedRequest <T>(IWebHandler handler, string url, string apiKey) => handler.GetRequest <T>(url, new Dictionary <string, string>()
 {
     { "Authorization", string.Format("Bearer {0}", apiKey) }
 });
コード例 #2
0
 private static T UnauthorizedRequest <T>(IWebHandler handler, string url) => handler.GetRequest <T>(url, null);