Saturday, January 7, 2012

Dropbox API Library changes

Just wanted to let you guys know about some small changes that I made to the dropbox library. I received an email from someone using the library. He wasn't having any issues really but there was having a minor annoyance. That annoyance was having to define the sandbox root for each method call.

He made a very good point, so I added a const variable at the top of the library called "DEFAULT_ROOT". All methods will use that value as the default root, but you still have the flexibility of specifying the root on each method call should you need it.

Check out the updated library at the github repo.

I have been neglecting this blog lately. My new years resolution is to be more vocal about what I am working on and hopefully help you guys out.

3 comments:

  1. Hi Jim, I was wondering if it is possible to upload files from my website to my dropbox without redirecting users, i.e, use dropbox as my file server.

    ReplyDelete
  2. Hello Qawelesizwe,

    I am sorry I am having trouble understanding what you are trying to do.

    Are you wanting to put a file in your dropbox and have your server pull the file out of dropbox and host it on your own site?

    ReplyDelete
  3. Hi Jim,

    Thanks for your library, I have a question, how i can get delta for a path? because the method delta of your library returns all files and directories that I have in my account dropbox and I only want for a path specified.

    I have added the parameter "path_prefix" in the method but returns error: "unauthorized" and I know not how fix it.

    you can help me please?

    thank you.

    ReplyDelete