BetterExplorer.Networks.PastebinClient.PastebinClient C# (CSharp) Метод

PastebinClient() публичный Метод

Creates a new PastebinSharp instance with a Username and Password, which allows private posting.
public PastebinClient ( string Username, string Password ) : System
Username string Pastebin.com username
Password string Pastebin.com password
Результат System
		public PastebinClient(string Username, string Password)
		{
			var IQuery = new NameValueCollection()
			{
				{ "api_dev_key", IDevKey },
				{ "api_user_name", Username },
				{ "api_user_password", Password }
			};

			using (var wc = new WebClient())
			{
				byte[] respBytes = wc.UploadValues(ILoginURL, IQuery);
				string resp = Encoding.UTF8.GetString(respBytes);

				if (resp.Contains("Bad API request"))
				{
					throw new WebException(resp, WebExceptionStatus.SendFailure);
				}

				UserKey = resp;
			}
		}
	}

Same methods

PastebinClient::PastebinClient ( ) : System