apiUserKey abstract method

Future<Either<RequestError, String>> apiUserKey(
  1. {required String username,
  2. required String password}
)

Generates a new Pastebin API user key. This key is used to identify a Pastebin user and is required to retrieve pastes of a user, delete a user paste, retrieve the information and settings of a user or retrieve the raw paste of a user.

It takes on username and password which is the username and password used to login in Pastebin.

Implementation

Future<Either<RequestError, String>> apiUserKey({
  required final String username,
  required final String password,
});