Aspose.Storage Cloud SDK for Ruby - v1.0.0

Rating: No reviews yet
Downloads: 22
Released: Dec 25, 2015
Updated: Jan 7, 2016 by asposetotal
Dev status: Stable Help Icon

Recommended Download

Application Aspose.Storage_Cloud_SDK_For_Ruby-V1.0.0.zip
application, 339K, uploaded Dec 25, 2015 - 22 downloads

Release Notes

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

Installing
You can simply install AsposeStorageCloud with gem:

gem install aspose_storage_cloud


Usage
APIs of this SDK can be called as follows:

require 'aspose_storage_cloud'

class Storage

  include AsposeStorageCloud
  
  def initialize
    #Get App key and App SID from https://cloud.aspose.com
    AsposeApp.app_key_and_sid("APP_KEY", "APP_SID")
    @storage_api = StorageApi.new  
  end
  
  def get_aspose_disc_usage
    #Check the disk usage of the current account.
    disc_usage_response = @storage_api.get_disc_usage()
    puts "Used Size: #{disc_usage_response.disc_usage.used_size} Total Size: #{disc_usage_response.disc_usage.total_size}"
  end
  
end

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

License
Aspose Storage SDK is available under the MIT license. See the LICENSE file for more info.

Reviews for this release

No reviews yet for this release.