29 lines
811 B
Objective-C
29 lines
811 B
Objective-C
//
|
|
// DropboxV2ObjC.h
|
|
// FMC Planner 2
|
|
//
|
|
// Created by Kilian Hofmann on 29.03.16.
|
|
// Copyright © 2016 Kilian Hofmann. All rights reserved.
|
|
//
|
|
|
|
#import "SharedDeclerations.h"
|
|
#import <Foundation/Foundation.h>
|
|
#import <Security/Security.h>
|
|
|
|
@interface DropboxV2ObjC : NSObject
|
|
|
|
@property(strong, nonatomic) NSString *token;
|
|
/// No trailing slash
|
|
@property(strong, nonatomic) NSString *rootDirectory;
|
|
@property(strong, nonatomic) NSData *kJSONNullObject;
|
|
@property(strong, nonatomic) NSURLProtectionSpace *kDropboxProtectionSpace;
|
|
|
|
- (BOOL)authorizeUserWithToke:(NSURL *)token completion:(void (^)(void))handler;
|
|
- (void)downloadFromDropbox:(NSArray *)files;
|
|
- (void)uploadToDropbox:(NSData *)data;
|
|
- (NSArray *)contentsOfPath:(NSString *)path;
|
|
- (NSDictionary *)getUserInfo;
|
|
- (void)deauthorizeUser;
|
|
|
|
@end
|