Inherits from APObject : NSObject
Declared in APBlob.h

Class Methods

downloadFileFromRemoteUrl:toFile:

+ (void)downloadFileFromRemoteUrl:(NSString *)url toFile:(NSString *)fileName

Declared In

APBlob.h

downloadFileFromRemoteUrl:toFile:downloadProgressBlock:successHandler:failureHandler:

Helper method to download a file from the remote server.

+ (void)downloadFileFromRemoteUrl:(NSString *)url toFile:(NSString *)fileName downloadProgressBlock:(MKNKProgressBlock)downloadProgressBlock successHandler:(APSuccessBlock)successBlock failureHandler:(APFailureBlock)failureBlock

Parameters

url

URL string pointing to the remote file.

fileName

The file with the path to download to.

downloadProgressBlock

Block invoked when the download progress changes.

successBlock

Block invoked when download is successful.

failureBlock

Block invoked when download fails.

Discussion

Helper method to download a file from the remote server.

Declared In

APBlob.h

downloadFileFromRemoteUrl:toFile:successHandler:

+ (void)downloadFileFromRemoteUrl:(NSString *)url toFile:(NSString *)fileName successHandler:(APSuccessBlock)successBlock

Declared In

APBlob.h

downloadFileFromRemoteUrl:toFile:successHandler:failureHandler:

Helper method to download a file from the remote server.

+ (void)downloadFileFromRemoteUrl:(NSString *)url toFile:(NSString *)fileName successHandler:(APSuccessBlock)successBlock failureHandler:(APFailureBlock)failureBlock

Parameters

url

URL string pointing to the remote file.

fileName

The file with the path to download to.

successBlock

Block invoked when download is successful.

failureBlock

Block invoked when download fails.

Discussion

Helper method to download a file from the remote server.

Declared In

APBlob.h

downloadImageFromRemoteUrl:successHandler:

Helper method to download a image from the remote server

+ (void)downloadImageFromRemoteUrl:(NSString *)imageUrl successHandler:(APImageBlock)successBlock

Parameters

imageUrl

url of the image to download

successBlock

block called when the image is downloaded. This block give a UIImage the and also give information on whether the image was downloaded or served from the image cache.

Discussion

Helper method to download a image from the remote server

Declared In

APBlob.h

uploadFileWithName:mimeType:

+ (void)uploadFileWithName:(NSString *)fileName mimeType:(NSString *)mimeType

Declared In

APBlob.h

uploadFileWithName:mimeType:successHandler:

Helper method to upload a file to the remote server.

+ (void)uploadFileWithName:(NSString *)fileName mimeType:(NSString *)mimeType successHandler:(APResultSuccessBlock)successBlock

Parameters

fileName

The file name with the path to upload.

mimeType

Mime type of the file being uploaded.

successBlock

Block invoked when upload is successful. It will return an article.

Discussion

Helper method to upload a file to the remote server.

Declared In

APBlob.h

uploadFileWithName:mimeType:successHandler:failureHandler:

Helper method to upload a file to the remote server.

+ (void)uploadFileWithName:(NSString *)fileName mimeType:(NSString *)mimeType successHandler:(APResultSuccessBlock)successBlock failureHandler:(APFailureBlock)failureBlock

Parameters

fileName

The file name with the path to upload.

mimeType

Mime type of the file being uploaded.

successBlock

Block invoked when upload is successful. It will return an article.

failureBlock

Block invoked when upload fails.

Discussion

Helper method to upload a file to the remote server.

Declared In

APBlob.h

uploadFileWithName:mimeType:uploadProgressBlock:successHandler:failureHandler:

Helper method to upload a file to the remote server.

+ (void)uploadFileWithName:(NSString *)fileName mimeType:(NSString *)mimeType uploadProgressBlock:(MKNKProgressBlock)uploadProgressBlock successHandler:(APResultSuccessBlock)successBlock failureHandler:(APFailureBlock)failureBlock

Parameters

fileName

The file name with the path to upload.

mimeType

Mime type of the file being uploaded.

uploadProgressBlock

Block invoked when upload progress changes.

successBlock

Block invoked when upload is successful. It will return an article.

failureBlock

Block invoked when upload fails.

Discussion

Helper method to upload a file to the remote server.

Declared In

APBlob.h