Manipulate Microsoft Project documents in iOS apps using Aspose.Tasks Cloud SDK for Objective C

Share on FacebookTweet about this on TwitterShare on LinkedIn

Aspose.Tasks Cloud

Aspose.Tasks Cloud logoAspose.Tasks Cloud is a REST API for manipulating Microsoft Project documents in the cloud. It allows you to work with all aspects of a Project document including conversion. The API offers a wide range of Microsoft Project export options. The Aspose.Tasks Cloud API allows developers to convert Project documents to various formats including XML, HTML, BMP, PNG, PDF, and XSLX. The API can be used to list document properties such as a project’s default start and finish time, minutes per week and days per month, work format, default task type, and so on. The API also provides the capability to retrieve information about each task from a Project data file hosted in the cloud. Task information such as name, ID, duration, and start and end dates, can be retrieved. In addition, the API can add new tasks to projects and retrieve information about task links and task assignments. The Aspose.Tasks API can manage project resources for documents hosted in the cloud. The API provides full access to a project’s calendar collection. Learn More

Adding Aspose.Tasks Cloud to your project

• Cocoapods

CocoaPods is the recommended way to add AsposeTasksCloud to your project.

  1. Add a pod entry for AsposeTasksCloud to your Podfile
    pod 'AsposeTasksCloud'
  2. Install the pod(s) by running
    pod install
  3. Include AsposeTasksCloud wherever you need it with
    #import "ASPTasksApi.h"

• Source files

Alternatively you can directly add source files to your project.

  1. Download the latest code version from GitHub or CodePlex repository.
  2. Open your project in Xcode, then drag and drop tasks 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 AsposeTasksCloud wherever you need it with
    #import "ASPTasksApi.h"

Usage

An example is given below to give you a quick preview of how APIs of this SDK can be called.

/*Get a project document in specified format.*/

#import "ASPApiClient.h"
#import "ASPTasksApi.h"

//Get App key and App SID from https://cloud.aspose.com
[ASPApiClient setAppKey:@"" andAppSID:@""];

ASPTasksApi *tasksApi = [[ASPTasksApi alloc] init];

[self.tasksApi getTaskDocumentWithFormatWithCompletionBlock:fileName
               format:@"pdf"
               storage:nil
               folder:nil
               completionHandler:^(NSURL *output, NSError *error) {
                   BOOL isFileExist = [[NSFileManager defaultManager] fileExistsAtPath:[output path]];
                   XCTAssertTrue(isFileExist, @"Failed to get a project document in specified format.");
}];

Dependency

This SDK has dependency on following libraries.

  1. AFNetworking
  2. JSONModel
  3. ISO8601
  4. AsposeStorageCloud

Aspose.Taks for Cloud SDK Examples

Aspose.Tasks Cloud SDK for Objective C Examples are also available to guide developers to get familiar with SDK and its usage to invoke resources and operations using the Aspose.Tasks Cloud REST API. Please see the SDK examples of following categories.

Unit Tests

To help you get started we also provided unit test coverage to Aspose.Tasks APIs.

Start a Free Trial Today

Start a free trial today – all you need is to sign up with Aspose Cloud service. Once you have signed up, you are ready to try powerful file processing features offered by Aspose Cloud.