module Github::Repos::Downloads
def create_download(user, repo, params={})
POST /repos/:user/:repo/downloads
Response from this method is to be used in #upload method.
You must first create a new download resource using this method.
Creating a new download is a two step process.
def create_download(user, repo, params={}) _normalize_params_keys(params) raise ArgumentError, "expected following inputs to the method: #{REQUIRED_INPUTS.join(', ')}" unless _valid_inputs(REQUIRED_PARAMS, params) _filter_params_keys(VALID_PARAMS, params) post("/repos/#{user}/#{repo}/downloads", params) end