Sha256: 7970c859d3b2a52e6e2e253f9e8abc4eb25620e32b76d3eeb261bf35eb9c7062
Contents?: true
Size: 459 Bytes
Versions: 10
Compression:
Stored size: 459 Bytes
Contents
require 'json' module Mattermost module Endpoint module Brand def get_brand_image(file_name) File.open(file_name, "w") do |file| file.binmode get(get_brand_image_url(), stream_body: true) do |fragment| file.write(fragment) end end end def get_brand_image_url "/brand/image" end def upload_brand_image(image_file) #post("/brand/image", image_file) raise NotImplementedError end end end end
Version data entries
10 entries across 10 versions & 1 rubygems