Git Product home page Git Product logo

pranavlathigara / cloudrail-si-ios-sdk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mausvargas/cloudrail-si-ios-sdk

0.0 2.0 0.0 3.82 MB

Unified API Library for: Cloud Storage, Social Profiles. Included services are Dropbox, Google Drive, OneDrive, Box, Facebook, GitHub, Google+, LinkedIn, Slack, Twitter, Windows Live, Yahoo.

Home Page: https://docs.cloudrail.com

License: Other

Objective-C 58.36% Ruby 5.99% Shell 34.66% C 1.00%

cloudrail-si-ios-sdk's Introduction

[![Version](https://img.shields.io/cocoapods/v/cloudrail-si-ios-sdk.svg?style=flat)](http://cocoapods.org/pods/cloudrail-si-ios-sdk) [![Platform](https://img.shields.io/cocoapods/p/cloudrail-si-ios-sdk.svg?style=flat)](http://cocoapods.org/pods/cloudrail-si-ios-sdk) ## Integrate With Cocoapods (Swift & Objective-C)

CloudRail-SI-iOS is available through CocoaPods. To install it, simply add the following line to your Podfile (remember to put the use_frameworks! flag on top of the Podfile):

pod "cloudrail-si-ios-sdk"

Run Pod install again.

CloudRail SI for iOS

Integrate Mulitple Services With Just One API

CloudRail is a free software library which abstracts multiple APIs from different providers into a single and universal interface.

Current Interfaces:

Full documentation can be found at https://docs.cloudrail.com/

With CloudRail, you can easily integrate external APIs into your application. CloudRail is an abstracted interface that takes several services and then gives a developer-friendly API that uses common functions between all providers. This means that, for example, upload() works in exactly the same way for Dropbox as it does for Google Drive, OneDrive, and other Cloud Storage Services, and getEmail() works similarly the same way across all social networks.

Integrate Into Projects Without Cocoapods

Swift

  1. add a new Objective-C File (any file will do) to your project and Xcode will prompt if you want to configure your project with a bridging header (PROJECTNAME-Bridging-Header.h), press YES on the prompt.
  2. Drag an drop the Framework file to the "Embedded Binaries" of the iOS project, check "copy files" if needed.
  3. Xcode will generate and configure the file for you, on the file you have to import ( in a Objective-C way) with #import <CloudRail_ServiceCode/CloudRail_ServiceCode.h>.
  4. Make an AWESOME APP!!!

Objective-C

Simply drag an drop the Framework file to the "Embedded Binaries" of the iOS project, check "copy files" if needed. Import the framework on the desired class with #import <CloudRail_ServiceCode/CloudRail_ServiceCode.h>, and have fun!

Code Sample

Swift

override func viewDidAppear(animated: Bool) {
    let dropbox: Dropbox = Dropbox.init(clientId: "DROPBOX_ID", clientSecret: "DROPBOX_SECRET")
    let inputstream =  dropbox.downloadWithFilePath("/futurama.jpg")
    //READ FROM THE INPUT STREAM 
  }

Objective C

#import <CloudRail_ServiceCode/CloudRail_ServiceCode.h>

@interface CRViewController ()
@property (nonatomic) Dropbox * dropbox;
@property (nonatomic) GoogleDrive * googleDrive;
//@property (nonatomic) OneDrive * oneDrive;
//@property (nonatomic) Box * box;
@end

@implementation CRViewController

- (void)viewDidLoad
{
[super viewDidLoad];
self.dropbox = [[Dropbox alloc] initWithClientId:@"clientIdentifier" clientSecret:@"clientSecret"];

self.dropbox = [[GoogleDrive alloc] initWithClientId:@"clientIdentifier" clientSecret:@"clientSecret"];


}

-(void)downloadAndUpload{

//Download File from Dropbox
NSInputStream * streamToDownloadedFile = [self.dropbox downloadWithPath:@"/mudkip.jpg"];

//Upload the downloaded file to Googledrive
[self.googleDrive uploadWithPath:@"/mudkip.jpg" inputStream:streamToDownloadedFile size:size];

}

@end

Current Interfaces:

Social Media Profiles Interface:

  • Facebook
  • Github
  • Google Plus
  • LinkedIn
  • Slack
  • Twitter
  • Windows Live
  • Yahoo

Features

  • Get profile information, including full names, emails, genders, date of birth, and locales.
  • Retrieve profile pictures.
  • Login using the Social Network.

Full Documentation


Cloud Storage Interface:

  • Dropbox
  • Box
  • Google Drive
  • Microsoft OneDrive

Features:

  • Download files from Cloud Storage.
  • Upload files to Cloud Storage.
  • Get Meta Data of files, folders and perform all standard operations (copy, move, etc) with them.
  • Retrieve user information.

Full Documentation

More interfaces like payment and messaging are coming soon.

Advantages of Using CloudRail

  • Consistent Interfaces: As functions work the same across all services, you can perform tasks between services simply.

  • Easy Authentication: CloudRail includes easy ways to authenticate, to remove one of the biggest hassles of coding for external APIs.

  • Switch services instantly: One line of code is needed to set up the service you are using. Changing which service is as simple as changing the name to the one you wish to use.

  • Simple Documentation: There is no searching around Stack Overflow for the answer. The CloudRail documentation at https://docs.cloudrail.com/ is regularly updated, clean, and simple to use.

  • No Maintenance Times: The CloudRail Libraries are updated when a provider changes their API.

Get Updates

To keep updated with CloudRail, including any new providers that are added, just add your email address to https://cloudrail.com/updates/.

Pricing

CloudRail is free to use. For all projects; commercial and non-commercial. We want APIs to be accessible to all developers. We want APIs to be easier to manage. This is only possible if there are free, powerful tools out there to do this. The only favor we are asking for, is to spread the word about this library. Thank you!

Other Platforms

CloudRail is also available for other platforms like Android and Java. You can find all libraries on https://cloudrail.github.io

Questions?

Get in touch at any time by emailing us: [email protected]

cloudrail-si-ios-sdk's People

Contributors

fel-cesar avatar felixkm avatar florianwendel avatar

Watchers

 avatar  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.