Level up your Box knowledge with brand new learning paths on Box University. Visit training.box.com to get started

I am trying to upload file with'rest-client' gems.

Answered
New post

Comments

5 comments

  • Murtza

     Have you seen the Box Ruby SDK? Here is the method signature to upload a file with the Ruby SDK.

    0
    Comment actions Permalink
  • novice_mux

    Thanks for reply 🙂 
    Yah, it worked with the boxr gem.  I had figured it out before. 

    0
    Comment actions Permalink
  • archemedxian

    Did it only work with the boxr gem, or were you able to get it working with the RestClient gem as well?

    0
    Comment actions Permalink
  • archemedxian

    Also Murtza, I might ask if there is anything wrong or that can be adjusted to the RestClient call to make it work? This should be a straightforward HTTP task.

    0
    Comment actions Permalink
  • novice_mux

    I won't able to upload a file from rest-client. Surprising, It does work with the postman, though postman externally using rest call only.  I think something wrong with the code that I have written. 
    Using Boxer (Ruby gem) easy and fast.  It does solve my problem so I completed my task with boxr gem.

    0
    Comment actions Permalink

Please sign in to leave a comment.