Aspose.Storage Cloud SDK for Objective C - v1.0.0

Rating: No reviews yet
Downloads: 22
Released: Nov 17, 2015
Updated: Nov 17, 2015 by asposetotal
Dev status: Stable Help Icon

Recommended Download

application, 131K, uploaded Nov 17, 2015 - 22 downloads

Release Notes

Aspose.Storage Cloud SDK for Objective C

This repository contains Aspose.Storage Cloud SDK for Objective C - v1.0.0 source code. This SDK allows you to work with Aspose.Storage Cloud REST APIs in your iOS applications quickly and easily.

How to use the SDK?
1. Download the latest code version.
2. Open your project in Xcode, then drag and drop storage folder onto your project (use the "Product Navigator view"). Make sure to select Copy items when asked if you extracted the code archive outside of your project.
3. Include Aspose-Storage-SDK wherever you need it with #import "ASPStorageApi.h".

CocoaPods is the recommended way to add Aspose-Storage-SDK to your project.
1. Add a pod entry for Aspose-Storage-SDK to your Podfile pod 'AsposeStorageCloud'
2. Install the pod(s) by running pod install.
3. Include Aspose-Storage-SDK wherever you need it with #import "ASPStorageApi.h".

An example is given below to give you a quick preview of how APIs of this SDK can be called.
/*Upload a specific file. Parameters: path - source file path e.g. /file.ext, versionID - source file's version, storage - user's source storage name, newdest - destination file path, destStorage - user's destination storage name.*/
#import "ASPApiClient.h"
#import "ASPStorageApi.h"

//Get App key and App SID from
[ASPApiClient setAppKey:@"" andAppSID:@""];

ASPStorageApi *storageApi = [[ASPStorageApi alloc] init];
NSURL *pathToFile = [[NSBundle mainBundle] URLForResource:@"Creative" withExtension:@"jpg"];
[self.storageApi putCreateWithCompletionBlock:@"Creative.jpg" 
                       completionHandler:^(ASPBaseResponse *output, NSError *error) {
                           BOOL isFileExist = [[NSFileManager defaultManager] fileExistsAtPath:[output path]];
                         XCTAssertTrue(isFileExist, @"Failed to upload a specific file.");

Reviews for this release

No reviews yet for this release.