Latest 2.0.4
Homepage https://github.com/PatrickNLT/sugarsync-ios
License MIT
Platforms ios 7.0, requires ARC
Dependencies KeychainItemWrapper
Authors ,

SugarSyncSDK (v2.0.0)

Objective C framework for the Sugar Sync API on iOS

see https://www.sugarsync.com/developer

For a description of the SugarSync REST API.

This is a fork from the original library (https://github.com/huadee/sugarsync-ios) with a few additions:

  • CocoaPods support
  • Better XML writer (escapes characters)
  • Few API additions (logout, sharedInstance can be used even before initialization)

TODO

  • Implement XML body for calls needing attributes inside nodes (copyFile and updateFile). These calls are not functional for now.

Installation into a Cocoa project (iOS)

CocoaPods (highly recommended)

Use the SugarSyncSDK pod from CocoaPods.

Manual installation

You can also import the files manually. If you do, please make sure that you’re also importing files from KissXML and KeychainItemWrapper. If you intend to use the login UI, add the resource files to a bundle named SugarSyncSDK.bundle.

Using the library

#import <SugarSyncSDK/SugarSyncClient.h>

SugarSyncClient *sugarSyncClient = [SugarSyncClient createWithApplicationId:anAppId
                                                                  accessKey:anAccessKey
                                                           privateAccessKey:aPrivAccessKey
                                                                  userAgent:aUserAgent];

if ( !sugarSyncClient.isLoggedIn )
    {
        [sugarSyncClient displayLoginDialogWithCompletionHandler:^(SugarSyncLoginStatus aStatus, NSError *error) {

        //Shows a modal login view

see https://www.sugarsync.com/developer for information on how to use the API

Latest podspec

{
    "name": "SugarSyncSDK",
    "version": "2.0.4",
    "summary": "Objective C framework for the Sugar Sync API on iOS.",
    "homepage": "https://github.com/PatrickNLT/sugarsync-ios",
    "license": "MIT",
    "authors": [
        "Patrick Nollet",
        "Bill Culp"
    ],
    "source": {
        "git": "https://github.com/PatrickNLT/sugarsync-ios.git",
        "tag": "v2.0.4"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "libraries": "xml2",
    "xcconfig": {
        "HEADER_SEARCH_PATHS": "$(SDKROOT)/usr/include/libxml2"
    },
    "source_files": "SugarSyncSDK/SugarSyncSDK/**/*{.h,.m}",
    "public_header_files": "SugarSyncSDK/SugarSyncSDK/Public Headers/*.h",
    "resource_bundles": {
        "SugarSyncSDK": [
            "SugarSyncSDK/SugarSyncSDK/Images/*{.png}",
            "SugarSyncSDK/SugarSyncSDK/Private/*{.xib}"
        ]
    },
    "dependencies": {
        "KeychainItemWrapper": [
            "~> 1.2"
        ]
    }
}

Pin It on Pinterest

Share This