示例#1
0
 public HtpClient(HCHandler HCHandler) : base(HCHandler)
 {
     base.DefaultRequestHeaders.UserAgent.ParseAdd("DepositfilesSDK");
     base.DefaultRequestHeaders.ConnectionClose = m_CloseConnection;
     base.Timeout = m_TimeOut;
     base.DefaultRequestHeaders.Accept.Add(new System.Net.Http.Headers.MediaTypeWithQualityHeaderValue("application/json"));
 }
示例#2
0
 public HtpClient(HCHandler HCHandler) : base(HCHandler)
 {
     //base.DefaultRequestHeaders.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue("Bearer", authToken);
     base.DefaultRequestHeaders.UserAgent.ParseAdd("pCloudSDK");
     base.DefaultRequestHeaders.ConnectionClose = m_CloseConnection;
     base.Timeout = m_TimeOut;
 }
示例#3
0
 public HtpClient(HCHandler HCHandler)
     : base(HCHandler)
 {
     base.DefaultRequestHeaders.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue("Basic", Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(APIkey + ":" + APISecret)));
     base.DefaultRequestHeaders.UserAgent.ParseAdd("Image4ioSDK");
     base.DefaultRequestHeaders.ConnectionClose = m_CloseConnection;
     Timeout = m_TimeOut;
 }
示例#4
0
 public HtpClient(HCHandler HCHandler) : base(HCHandler)
 {
     base.DefaultRequestHeaders.UserAgent.ParseAdd("SaruchSDK");
     base.DefaultRequestHeaders.ConnectionClose = m_CloseConnection;
     base.Timeout = m_TimeOut;
     base.DefaultRequestHeaders.Accept.Add(new System.Net.Http.Headers.MediaTypeWithQualityHeaderValue("application/json"));
     base.DefaultRequestHeaders.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue("Bearer", AccessToken);
 }
示例#5
0
 public HtpClient(HCHandler HCHandler) : base(HCHandler)
 {
     base.DefaultRequestHeaders.UserAgent.ParseAdd("DailymotionSDK");
     base.DefaultRequestHeaders.ConnectionClose = m_CloseConnection;
     base.Timeout = m_TimeOut;
     base.DefaultRequestHeaders.Accept.Add(new System.Net.Http.Headers.MediaTypeWithQualityHeaderValue("application/json"));
     if (!string.IsNullOrEmpty(authToken))
     {
         base.DefaultRequestHeaders.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue("Bearer", authToken);
     }
 }
示例#6
0
 public HtpClient(HCHandler HCHandler) : base(HCHandler)
 {
     base.DefaultRequestHeaders.UserAgent.ParseAdd("BackBlazeSDK");
     base.DefaultRequestHeaders.ConnectionClose = m_CloseConnection;
     base.Timeout = m_TimeOut;
 }