Class: AsposeEmailCloud::EmailCloud

Inherits:
Object
  • Object
show all
Defined in:
lib/aspose-email-cloud/api/email_cloud.rb

Overview

Aspose.Email Cloud API.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client_secret = nil, client_id = nil, base_url = 'api.aspose.cloud', api_version = 'v4.0', debug = false) ⇒ EmailCloud

Initializes a new instance of the EmailApi class.

Parameters:

  • client_secret (String) (defaults to: nil)

    Key to access the server.

  • client_id (String) (defaults to: nil)

    ID to access the server.

  • base_url (String) (defaults to: 'api.aspose.cloud')

    Server URL.

  • api_version (String) (defaults to: 'v4.0')

    Api version.

  • debug (Object) (defaults to: false)

    Debug switch [true, false].



70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# File 'lib/aspose-email-cloud/api/email_cloud.rb', line 70

def initialize(client_secret = nil, client_id = nil, base_url = 'api.aspose.cloud', api_version = 'v4.0', debug = false)
  api_client = ApiClient.new(client_secret, client_id, base_url, api_version, debug)
  @api_invoker = ApiInvoker.new(api_client)

  @calendar = CalendarApi.new(@api_invoker)

  @contact = ContactApi.new(@api_invoker)

  @email = EmailApi.new(@api_invoker)

  @disposable_email = DisposableEmailApi.new(@api_invoker)

  @email_config = EmailConfigApi.new(@api_invoker)


  @mapi = MapiGroup.new(@api_invoker)

  @client = ClientGroup.new(@api_invoker)

  @ai = AiGroup.new(@api_invoker)

  @cloud_storage = CloudStorageGroup.new(@api_invoker)

end

Instance Attribute Details

#aiObject (readonly)

AI powered operations.



58
59
60
# File 'lib/aspose-email-cloud/api/email_cloud.rb', line 58

def ai
  @ai
end

#api_invokerObject (readonly)

Returns the value of attribute api_invoker.



31
32
33
# File 'lib/aspose-email-cloud/api/email_cloud.rb', line 31

def api_invoker
  @api_invoker
end

#calendarObject (readonly)

iCalendar document operations.



35
36
37
# File 'lib/aspose-email-cloud/api/email_cloud.rb', line 35

def calendar
  @calendar
end

#clientObject (readonly)

Builtin Email client operations.



55
56
57
# File 'lib/aspose-email-cloud/api/email_cloud.rb', line 55

def client
  @client
end

#cloud_storageObject (readonly)

Cloud file storage operations.



61
62
63
# File 'lib/aspose-email-cloud/api/email_cloud.rb', line 61

def cloud_storage
  @cloud_storage
end

#contactObject (readonly)

Contact document operations. Supported formats: VCard, MSG, WebDav



38
39
40
# File 'lib/aspose-email-cloud/api/email_cloud.rb', line 38

def contact
  @contact
end

#disposable_emailObject (readonly)

Checks if an email is a disposable one



44
45
46
# File 'lib/aspose-email-cloud/api/email_cloud.rb', line 44

def disposable_email
  @disposable_email
end

#emailObject (readonly)

Email document (*.eml) operations.



41
42
43
# File 'lib/aspose-email-cloud/api/email_cloud.rb', line 41

def email
  @email
end

#email_configObject (readonly)

Email server configuration discovery.



47
48
49
# File 'lib/aspose-email-cloud/api/email_cloud.rb', line 47

def email_config
  @email_config
end

#mapiObject (readonly)

MAPI operations.



52
53
54
# File 'lib/aspose-email-cloud/api/email_cloud.rb', line 52

def mapi
  @mapi
end