Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="JsonClient" /> class.
 /// </summary>
 /// <param name="username">The username.</param>
 /// <param name="password">The password.</param>
 /// <param name="proxy">The proxy.</param>
 public JsonClient(string username, string password, IWebProxy proxy = null)
 {
     Authorization = Authorization.Basic(username, password);
     Proxy         = proxy;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="JsonClient" /> class.
 /// </summary>
 /// <param name="username">The username.</param>
 /// <param name="password">The password.</param>
 /// <param name="proxy">The proxy.</param>
 public JsonClient(string username, string password, IWebProxy proxy = null)
 {
     BasicHeader  = Authorization.Basic(username, password);
     BearerHeader = new Dictionary <string, string>();
     Proxy        = proxy;
 }