Inherits from APObject : NSObject
Declared in APFile.h
APFile.m

Class Methods

downloadFileWithName:validUrlForTime:successHandler:

+ (void)downloadFileWithName:(NSString *)name validUrlForTime:(NSNumber *)minutes successHandler:(APFileDownloadSuccessBlock)successBlock

Declared In

APFile.h

downloadFileWithName:validUrlForTime:successHandler:failureHandler:

Method used to download data from the remote server

+ (void)downloadFileWithName:(NSString *)name validUrlForTime:(NSNumber *)minutes successHandler:(APFileDownloadSuccessBlock)successBlock failureHandler:(APFailureBlock)failureBlock

Parameters

name

The name of the file you want to download

minutes

The time for which the download url will be valid

successBlock

Block invoked when download is successful

failureBlock

Block invoked when download fails

Declared In

APFile.h

uploadFileWithName:data:validUrlForTime:

+ (void)uploadFileWithName:(NSString *)name data:(NSData *)data validUrlForTime:(NSNumber *)minutes

Declared In

APFile.h

uploadFileWithName:data:validUrlForTime:contentType:

+ (void)uploadFileWithName:(NSString *)name data:(NSData *)data validUrlForTime:(NSNumber *)minutes contentType:(NSString *)contentType

Declared In

APFile.h

uploadFileWithName:data:validUrlForTime:contentType:successHandler:

+ (void)uploadFileWithName:(NSString *)name data:(NSData *)data validUrlForTime:(NSNumber *)minutes contentType:(NSString *)contentType successHandler:(APResultSuccessBlock)successBlock

Declared In

APFile.h

uploadFileWithName:data:validUrlForTime:contentType:successHandler:failureHandler:

Method used to upload data to the remote server

+ (void)uploadFileWithName:(NSString *)name data:(NSData *)data validUrlForTime:(NSNumber *)minutes contentType:(NSString *)contentType successHandler:(APResultSuccessBlock)successBlock failureHandler:(APFailureBlock)failureBlock

Parameters

name

The name of the file

data

Data that you want to upload

minutes

The time for which the upload url will be valid. If the file size is big make sure to set the value to a large amount

contentType

The mimetype of the data being uploaded

successBlock

Block invoked when upload is successful

failureBlock

Block invoked when upload fails

Declared In

APFile.h