UploadFuse

This Library is a work in progress

This is a Ruby library for interacting with the UploadFuse API.

Installation

Add this line to your application's Gemfile:

gem "uploadfuse"

Usage

Set Access Token

Firstly you'll need to create an API Access Token on your bucket page.

@client = UploadFuse::Client.new(access_token: "")

Uploads

# Retrieves a list of Uploads for your Bucket
@client.uploads.list

# Retrieves an Upload
@client.uploads.get id: "abc123"
#=> #<UploadFuse::Upload token="abc123fb...

# Upload a file
# file_name is optional
@client.uploads.create_from_file file: File.new("myfile.jpg"), file_name: "other-file-name.jpg"
#=> #<UploadFuse::Upload token="63a3f8fb...

# Upload a file from a URL
@client.uploads.create_from_url url: "https://files.deanpcmad.com/abc.jpg"
#=> #<UploadFuse::Upload token="5e85e4a8...

# Delete an Upload
@client.uploads.delete id: "abc123"

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/deanpcmad/uploadfuse.

License

The gem is available as open source under the terms of the MIT License.