class Github::Client::GitData::Blobs

If your data cannot be losslessly sent as a UTF-8 string, you can base64 encode it.
the blob api takes an encoding parameter that can be either utf-8 or base64.
Since blobs can be any arbitrary binary data, the input and responses for

def create(*args)

Other tags:
    Api: - public

Parameters:
  • params (Hash) --
def create(*args)
  arguments(args, required: [:user, :repo]) do
    permit VALID_BLOB_PARAM_NAMES
    assert_required VALID_BLOB_PARAM_NAMES
  end
  post_request("/repos/#{arguments.user}/#{arguments.repo}/git/blobs", arguments.params)
end

def get(*args)

Other tags:
    Api: - public
def get(*args)
  arguments(args, required: [:user, :repo, :sha])
  get_request("/repos/#{arguments.user}/#{arguments.repo}/git/blobs/#{arguments.sha}", arguments.params)
end