Click or drag to resize
PastebinLogIn Method
Logs in to Pastebin and returns a User instance representing the logged in user.

Namespace: Pastebin
Assembly: Pastebin (in Pastebin.dll) Version: 1.0
Syntax
public User LogIn(
	string username,
	string password
)

Parameters

username
Type: SystemString
Ther username of the account to authenticate as.
password
Type: SystemString
The password for the account to authenticate as.

Return Value

Type: User
An object representing the newly authenticated user.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when username or password is null.
WebExceptionThrown when the underlying HTTP client encounters an error.
PastebinExceptionThrown when a bad API request is made.
See Also