Giter Club home page Giter Club logo

rubysharefilesamplecode's Introduction

RubyShareFileSampleCode

This is based on the sample Ruby code posted on api.sharefile.com from https://api.sharefile.com/rest/samples/ruby.aspx

This is modified to demonstrate Chunked uploads, and is based on the report at https://community.sharefilesupport.com/citrixsharefile/topics/-missing-parameters-response-from-threaded-chunkuri-raw-file-upload-which-parameters-am-i-missing

Thanks to Michael Berrier of ShareFile for his help getting this to work. However, any errors are my own.

To use this (I use Terminal on a Mac with Ruby 2.2.0):

First, modify the code with your own credentials at the end of the file.

Then, start the Terminal, and then, start irb (the Interactive Ruby Shell) and type:

require './sharefilesamplecode'

(you must include the './', or whatever applies to your operating system, or else irb will look for a gem named sharefilesamplecode) If everything is OK, you will download the file and folder names in your root, including the ID's, which you can use to construct the upload calls.

Then, you should be able to upload files by calling the routines. For example:

upload_file_one_chunk $token, 'foh5f824-79ad-4665-8351-3625853cea32', '/Users/username/work/YourPDF.pdf'

rubysharefilesamplecode's People

Contributors

nachbar avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.