addEmails method

Stream<UserEmail> addEmails(
  1. List<String> emails
)

Add Emails

API docs: https://developer.github.com/v3/users/emails/#add-email-addresses

Implementation

Stream<UserEmail> addEmails(List<String> emails) =>
    PaginationHelper(github).objects(
      'POST',
      '/user/emails',
      UserEmail.fromJson,
      statusCode: 201,
      body: GitHubJson.encode(emails),
    );