Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

uploadfuse

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uploadfuse

  • 0.1.2
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

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.

FAQs

Package last updated on 08 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc