Dropbox iOS SDK (Objective C) – Dropbox Integration Guide from V1 to V2

 In CloudRail

Here’s the easiest way how to add Dropbox Objective C SDK:

  1. Create a free CloudRail Account
  2. Download the CloudRail library for Objective-C on GitHub or via CocoaPods
  3. Insert your Dropbox API credentials
  4. Use this SDK instead of the official Dropbox Objective-C SDK to never worry about API changes again

For more details:

With the news that the Objective C Dropbox API for V1 is deprecated, you might want to start adding a new Dropbox iOS SDK into your application straight away. However, with Dropbox not having an official Objective C API yet, you won’t be able to start for a few months (presuming Dropbox releases on time).

Unless you use CloudRail.

Dropbox Objective-C SDK iOS – Why to use CloudRail

(If you just want to skip to how to upgrade from Dropbox Version 1, click here)

As with the former official Dropbox iOS SDK, we use an objective-c implementation. This means that you will feel right at home when creating your HTTP calls. Which is one of the advantages of using CloudRail over other similar systems. We are a completely middleware free solution> There is no server involved between your application and the Dropbox servers. You never have to worry about CloudRail going down; your app will continue on working, no matter what the status of us is.

There are other advantages to using CloudRail as well. It is not just the Dropbox iOS SDK that you can integrate. With CloudRail, it is possible to add as many cloud storage services you want. Adding a new one is just as simple as adding one new line into your code. Additionally, as all cloud storage providers have been standardized to use the same functions, this means that for example the Google Drive upload function works exactly the same as the upload function for the Dropbox SDK for iOS.

Additionally, CloudRail has a series of different interfaces. So it’s not just Cloud Storage you can integrate. CloudRail also includes interfaces for:

  • Social Media.
  • Payment Services.
  • SMS.
  • Email.
  • Points of Interest.

And additionally, Dropbox upgrading from Dropbox V1 to Dropbox V2 is likely not the first time that you’ve had to update your API implementation, and it will not be the last. Each CloudRail SDK is updated at least weekly; the above interfaces are only those ones that we have included already. Whenever an API provider, including Dropbox, updates their API we include th e newest version. This means that updating to the new version is as simple as downloading the newest version of CloudRail. There is no code to change, test, or debug.

Dropbox iOS SDK Tutorial – How to Add

Your first step in adding the Dropbox code to your project is to download the CloudRail Single Interface iOS SDK. You have two options here:

Option 1 – With CocoaPods

Use CocoaPods to add the Dropbox SDK for iOS to your project:
Add the pod to your podfile
pod 'cloudrail-si-ios-sdk'
then run
pod install

Note: You need a free CloudRail license key. Get one here.

Option 2 – Manually

If you prefer instead to use GitHub and a manual install for this Dropbox iOS SDK Tutorial, you will first need to download the library from here.

Once you have the file, follow the following steps:

  • Unzip the file.
  • Create a new iOS Xcode project or switch to a pre-existing one.
  • Copy the *.framework file into your project.
  • Make sure that it is added to “Linked Frameworks and Libraries” and “Embedded Binaries.”
  • (Optional Step.) If you don’t want to import it on every class that you call the framework methods, you can add it to your precompiling header file (*.pch) as “#import <CloudRail_ServiceCode/CloudRail_ServiceCode.h>

Note: You need a free CloudRail license key. Get one here.

Once you have done this, you can now start by instantiating the class of the Cloud Storage interface. For the Dropbox iOS SDK in Objective C, check this guide to set up the SDK.

(Don’t forget, if you choose to integrate any other Cloud Storage service in Objective C, all you have to do is change each instance of Dropbox in this code with the new service, e.g. OneDrive)

Now you are ready to use CloudRail to upgrade your Dropbox API V1 implementation for Dropbox API V2, and any other updates in the future. You are now able to call all of the methods as described in the CloudRail iOS API Documentation.

Example of a File Upload with the Dropbox SDK for iOS

You now have in your app the Dropbox SDK. iOS Cloud Storage, which won’t be affected by API deprecation. You are probably now wondering how you can start using the CloudRail library as a replacement for the Dropbox iOS SDK?

Below is an example of how to use the CloudRail Library to upload a file to a Dropbox account in Objective-C:


Full CloudRail iOS API Documentation

Now you have your Dropbox SDK for iOS, what’s next?

As stated above, the CloudRail Single Interface doesn’t just implement the Dropbox API. We’ve bundled together a lot of different cloud APIs in groupings we like to call interfaces. As a reminder, these interfaces are (with their available services):

  • Cloud Storage: Dropbox, Google Drive, Box & OneDrive.
  • Social Media: Facebook, Google+, Twitter, LinkedIn, Windows Live, Yahoo, GitHub, Slack & Instagram.
  • Payment Services: Paypal & Stripe.
  • SMS: Nexmo & Twilio.
  • Points of Interest: Google Places, Foursquare & Yelp.

And don’t forget that Cloud Rail has all of these advantages:

  • Easy Authentication: Authentication in CloudRail is simple, taking away one of the largest headaches of connecting to Cloud APIs.
  • One Line API setup: Each additional service you want in your code only needs one line to add.
  • Universal Functions: You no longer have to read documentation to discover the unique way a service implements, for example, “upload.” Each service uses the same functions. Same inputs, same outputs.
  • Managed API Updates: No need to worry about APIs updating. The CloudRail library is updated as soon as a provider changes their implementation. No more debugging, hair pulling over bizarre method changes.
  • Free: Completely free for non commercial apps.

So when you add CloudRail. You don’t just get a Dropbox iOS SDK in Objective C. You get an iOS in Objective C for all of the Cloud Services you could want to use. We are constantly adding more and more every day in response to user feedback, and not a week goes by where we haven’t updated the CloudRail SDKs.

So what are you waiting for? That year deadline? Get integrating Dropbox into your application, and all the other services you could ever desire, now.

Get Started Now

Create a free CloudRail account and download the Dropbox Objective-C SDK.

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading...
Recent Posts