Sha256: 7ed229e99cf6b616f95cc243f54c73a349b700f9ce4c662f8abee33094b7b56f

Contents?: true

Size: 1.57 KB

Versions: 2

Compression:

Stored size: 1.57 KB

Contents

# Aspose.Email Cloud SDK For Ruby
This SDK lets you use [Aspose Cloud Email APIs](http://www.aspose.com/cloud/email-api.aspx) in your Ruby web apps.

## Installing
You can simply install Aspose Email Cloud SDK with gem:

`gem install aspose_email_cloud`

## Usage
APIs of this SDK can be called as follows:

```ruby
require 'aspose_email_cloud'

class EmailUsage
  
  include AsposeEmailCloud
  include AsposeStorageCloud
	
  def initialize
    #Get App key and App SID from https://cloud.aspose.com
    AsposeApp.app_key_and_sid("APP_KEY", "APP_SID")
    @email_api = EmailApi.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_document_with_format
    #Get mail in specified format
    file_name = "email_test.eml"
    upload_file(file_name)
    
    response = @email_api.get_document_with_format(file_name, "msg")
  end
  
end
```
## Unit Tests
Aspose Email SDK includes a suite of unit tests within the [test](https://github.com/asposeemail/Aspose_Email_Cloud/blob/master/SDKs/Aspose.Email_Cloud_SDK_for_Ruby/test/email_tests.rb) subdirectory. These Unit Tests also serves as examples of how to use the Aspose Email SDK.

## Contact
Your feedback is very important to us. Please email us all your queries and feedback at marketplace@aspose.com.

## License
Aspose Email SDK is available under the MIT license. See the [LICENSE](https://github.com/asposeemail/Aspose_Email_Cloud/blob/master/SDKs/Aspose.Email_Cloud_SDK_for_Ruby/LICENSE) file for more info.

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
aspose_email_cloud-1.0.1 README.md
aspose_email_cloud-1.0.0 README.md