def create(user_name, repo_name, params={})
      _update_user_repo_params(user_name, repo_name)
      _validate_user_repo_params(user, repo) unless user? && repo?
      normalize! params
      filter! VALID_KEY_PARAM_NAMES, params
      assert_required_keys(VALID_KEY_PARAM_NAMES, params)

      options = { headers: { "Content-Type" => "application/json" } }
      post_request("/1.0/repositories/#{user}/#{repo.downcase}/deploy-keys/", params, options)
    end
def create(user_name, repo_name, params={})
      _update_user_repo_params(user_name, repo_name)
      _validate_user_repo_params(user, repo) unless user? && repo?
      normalize! params
      filter! VALID_KEY_PARAM_NAMES, params
      assert_required_keys(VALID_KEY_PARAM_NAMES, params)

      options = { headers: { "Content-Type" => "application/json" } }
      post_request("/1.0/repositories/#{user}/#{repo.downcase}/deploy-keys/", params, options)
    end
Create a key

 = Inputs
 * <tt>:title</tt> - Required string.
 * <tt>:key</tt> - Required string.

 = Examples
  bitbucket = BitBucket.new
  bitbucket.repos.keys.create 'user-name', 'repo-name',
    "label" => "octocat@octomac",
    "key" =>  "ssh-rsa AAA..."