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"));
 }
Exemple #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;
 }
Exemple #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;
 }
Exemple #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);
 }
Exemple #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);
     }
 }
Exemple #6
0
 public HtpClient(HCHandler HCHandler) : base(HCHandler)
 {
     base.DefaultRequestHeaders.UserAgent.ParseAdd("BackBlazeSDK");
     base.DefaultRequestHeaders.ConnectionClose = m_CloseConnection;
     base.Timeout = m_TimeOut;
 }