Tuesday, October 4th, 2011

The Absolute Beginner’s Guide to the Box APIs


For anyone who’s ever thought about hooking up their application to Box for Cloud file storage for their users, be it your own homegrown iPad app, or a portal on the company intranet, the Box APIs are your ticket to getting all the features and functionality that you’ve come to expect from the Box UI. Want your users to share a document? There’s an API for that. Want your users to see who’s collaborating on their folders? There’s an API for that. Want to see all the comments from the collaborators? There’s an API for that too. Basically anything you’re already doing with your documents on Box, you can do via an API. So fire up your Ruby/php/Python/Java application, and mix in some Box goodness. Your users will thank you for it!

To get started, go to http://developers.box.net and check everything out. Here you’ll find the developer documentation, links to the Developers Blog, the developers Forum and information about the various API calls you can make. There’s a wealth of information for you to explore, so feel free to poke around for a bit before moving on.

Now that you’re acclimated, you probably want to build something badass…but how do you do it?

The first thing you’ll need is a Developer’s key from the Project Setup Page, so head there to create and name your own application. My first one was called “PeterTest,” (creative, right?), but yours can be anything you want – even “Unicorn Rainbow Power” or “Best App Ever.” Next, copy the API key we generate for you. We know you’re excited, but don’t go sharing the key with other people, as it will grant them access to your Box application. To be brief: Keep your API key secret! However, you may want to write it down (or copy and paste it into a text file somewhere handy), as you’ll need it for the next few steps.

It’s helpful to walk through the basic API call stack in a browser window, so just click the Get Ticket API Function page and scroll down to the REST Request. Copy and paste the https://www.box.net/api/… line into a browser bar, and replace the stuff after the equals sign with the top-secret API key you’ve written down. After that, load the page on your browser to get a response that contains your very own authentication ticket. Depending on your browser, you may need to view source to see the XML that comes back. This is another thing to keep semi-secret! This one isn’t quite as critical, since you can generate as many of these as you want. Again, I recommend that you cut and paste the ticket part of the response into your text file; I put mine on a separate line from my app_key.

Great. Now you can move to the next step and use that ticket and app_key to get an auth token. Go through the same basic steps:

  1. Navigate to the API function you want to try (get_auth_token)
  2. Copy and paste the https:// part out of the REST Request example
  3. Edit the request to put your own api_key, ticket, and any additional parameters you want to try
  4. Hit return and fetch the response

Once you have an auth_token, you can call any of the other APIs you want, and the pattern to do it is the same. I suggest you try the get_account_tree with the params[onelevel] set after you’ve uploaded a few files into your Box account. Also good is get_comments, get_collaborators, as well as get_file_info.

You should now have a pretty good idea of how to write your own programs against the Box APIs. There are also starter libraries available to hit these apis on github. If you have any lingering questions or comments, feel free to reach out to the dev team on twitter @BoxPlatform or in our developer forum. Good luck!

  • Samuel8750

    One last thing to remember, sometimes a nike flex experience rn very short boring speech is better received than what you think is a good long one.This was a decision that has proven to be extremely successful.Although experts vary on how often to replace a pair of shoes, a good standard to go by is to replace your shoes every 350 miles or six months, whichever comes sooner.Additionally, you can explore second hand sources like Nike Fuel Band eBay listings and Nike Fuel Band alternatives that have lower price tags.This is common sense you would think, but nerves do strange things to people.In fact, the bigger issue is not from the milk itself, but rather from other contaminants that affect the milk collection process, such as germs on mom hands and skin, the bottle, cap, etc.

    And Timberland Custom Boots well known as other Timberland.Look for ways you can be a resource for your prospects and customers.”I am a big believer in providing back and helping locally and also the world.There is a great craze for football in Delhi.If you actually remember, Spike was spotted wearing those two colorways court side all through last season NBA playoffs.Want to make your Chevy Silverado standout?All HR activities- recruitment, selection, training, compensation, IR and separation- are carried out in consultation with union leaders.You’ll love yourself for revealing your true inner nature.When designing the Shoe Pouch, our primary goal was to ensure a snug fit, extensively testing it with reinforced, nylon lace loops, and a VelcroR closure over the insertion slit.

    Itse kiinnostaisi ainakin menn oppimaan luonnonkosmetiikasta ja raakaveganismista, opetella konsultoinnin periaatteet, kundaliinijoogaa, sek sit miten saa vuokrat ja vastikkeet alas!This man is popular to many as the greatest tattoo artist of his time.Taxpayers will use the information on the 1099 forms they receive to fill out their income tax returns.There will be a fear in me of not able to complete my studies before the examination date.MS Excel also allows users to view charts along with the data by using embedded charts.A third perspective observes a reconfiguration of the goals and functions of interest groups in an era in the early twenty-first century of “postmaterialism.

    are now The past year 2010 saw several types of trends kids fashion, where a number of designs and patterns in all of these trends were presented.A trip nike air max 90 vt round the same local supermarket revealed that I could buy Coke in at least 6 different formats, from 330ml chilled bottles to 2l big bottles.I knew that my female Pekingese dog as all the other dogs rely on other senses that are more sensitive than ours, and thus compensate lack of ability to see colors.The first prototype was flown in St.Customers can find all of the relevant data on this online store.This sandal absorbs shock up to 22 percent more than any ordinary shoes, trainers or sandals.Sports have achieved one of the vital places in the entertainment world.

    Instead, choose additional wallet friendly pieces, try gold plated or gold tone bracelets.I apologize for not posting yesterday.I’m not gonna lose my shit.And when I did urinate, I found it could be mildly uncomfortable or unsatisfying (feeling like I hadn’t emptied my bladder completely).) Create at least four keyword posts per day.Make sure not to leave your candy jars plain with no decor, add ribbon and candy tags to them.There has been consistent job growth in the private sector.The unique prints embedded on the shirts and air jordan shoes for sale jackets of Ed hardy apparel are all carefully conceptualized and designed by the no less than the man behind the clothing line, Ed Hardy himself.

    If you still face issues after taking these steps, please file a ticket and we will gladly assist you further.Another important reason why the majority of bridal couples want to buy wedding sets and fine jewelry bracelets online is the convenience and ease it offers.Burdisso: The centre back, can play well for you, but ended up being a little aggressive for me and was he was getting old so sold him the next season for 1.This is a “no fluff” type of job.Phenol: Phenol is most commonly used as a disinfectant, also used as a dye, is listened as a carcinogenic agent (cancer-causing) agent and is also known as carbolic acid.hospital room, I knew it wouldn?Microloans are small loans,available through a variety of resources including community sources, online lenders and peer lending groups.