Aspose.Tasks Cloud SDK for Ruby - v1.0.0

Rating: No reviews yet
Downloads: 15
Released: Jan 31, 2016
Updated: Jan 31, 2016 by asposetasks
Dev status: Stable Help Icon

Recommended Download

Application Aspose.Tasks_Cloud_SDK_for_Ruby-v1.0.0.zip
application, 197K, uploaded Jan 31, 2016 - 15 downloads

Release Notes

Aspose.Tasks Cloud SDK For Ruby
This SDK lets you use Aspose Cloud Tasks APIs in your Ruby web apps.

Installing
You can simply install Aspose Tasks Cloud SDK with gem:

gem install aspose_tasks_cloud


Usage
APIs of this SDK can be called as follows:

require 'aspose_tasks_cloud'

class TasksUsage
  
  include AsposeTasksCloud
  include AsposeStorageCloud
	
  def initialize
    #Get App key and App SID from https://cloud.aspose.com
    AsposeApp.app_key_and_sid("APP_KEY", "APP_SID")
    @tasks_api = TasksApi.new  
  end

  def upload_file(file_name)
    @storage_api = StorageApi.new
    response = @storage_api.put_create(file_name, File.open("data/" << file_name,"r") { |io| io.read } )
  end
  
  def get_task_document_with_format
    #Get a project document in specified format.
    file_name = "sample-project.mpp"
    upload_file(file_name)
    format = "pdf"

    response = @tasks_api.get_task_document_with_format(file_name, format)
  end
  
end


Unit Tests
Aspose Tasks SDK includes a suite of unit tests within the test subdirectory. These Unit Tests also serves as examples of how to use the Aspose Tasks SDK.

For more details, please visit our documentation website.

Reviews for this release

No reviews yet for this release.