|
| 1 | +# ------------------------------------------------------------------------------------ |
| 2 | +# <copyright company="Aspose Pty Ltd" file="groupdocs_annotation_cloud.rb"> |
| 3 | +# Copyright (c) 2003-2018 Aspose Pty Ltd |
| 4 | +# </copyright> |
| 5 | +# <summary> |
| 6 | +# Permission is hereby granted, free of charge, to any person obtaining a copy |
| 7 | +# of this software and associated documentation files (the "Software"), to deal |
| 8 | +# in the Software without restriction, including without limitation the rights |
| 9 | +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 10 | +# copies of the Software, and to permit persons to whom the Software is |
| 11 | +# furnished to do so, subject to the following conditions: |
| 12 | +# |
| 13 | +# The above copyright notice and this permission notice shall be included in all |
| 14 | +# copies or substantial portions of the Software. |
| 15 | +# |
| 16 | +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 17 | +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 18 | +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 19 | +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 20 | +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 21 | +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 22 | +# SOFTWARE. |
| 23 | +# </summary> |
| 24 | +# ------------------------------------------------------------------------------------ |
| 25 | + |
| 26 | +# Common files |
| 27 | +require_relative 'groupdocs_annotation_cloud/api_client' |
| 28 | +require_relative 'groupdocs_annotation_cloud/api_error' |
| 29 | +require_relative 'groupdocs_annotation_cloud/version' |
| 30 | +require_relative 'groupdocs_annotation_cloud/configuration' |
| 31 | + |
| 32 | +# Models |
| 33 | +require_relative 'groupdocs_annotation_cloud/models/annotation_info' |
| 34 | +require_relative 'groupdocs_annotation_cloud/models/annotation_reply_info' |
| 35 | +require_relative 'groupdocs_annotation_cloud/models/document_info' |
| 36 | +require_relative 'groupdocs_annotation_cloud/models/image_pages' |
| 37 | +require_relative 'groupdocs_annotation_cloud/models/link' |
| 38 | +require_relative 'groupdocs_annotation_cloud/models/link_element' |
| 39 | +require_relative 'groupdocs_annotation_cloud/models/page_info' |
| 40 | +require_relative 'groupdocs_annotation_cloud/models/row_info' |
| 41 | +require_relative 'groupdocs_annotation_cloud/models/value_type' |
| 42 | +require_relative 'groupdocs_annotation_cloud/models/annotation_api_link' |
| 43 | +require_relative 'groupdocs_annotation_cloud/models/image_page' |
| 44 | +require_relative 'groupdocs_annotation_cloud/models/point' |
| 45 | +require_relative 'groupdocs_annotation_cloud/models/rectangle' |
| 46 | + |
| 47 | +# APIs |
| 48 | +require_relative 'groupdocs_annotation_cloud/api/annotation_api' |
| 49 | +require_relative 'groupdocs_annotation_cloud/api/image_info_api' |
| 50 | +require_relative 'groupdocs_annotation_cloud/api/image_pages_api' |
| 51 | +require_relative 'groupdocs_annotation_cloud/api/pdf_file_api' |
| 52 | + |
| 53 | +module GroupDocsAnnotationCloud |
| 54 | + # Main module |
| 55 | + class << self |
| 56 | + # Initialize SDK with API keys. |
| 57 | + # |
| 58 | + # app_sid = "xxx" |
| 59 | + # app_key = "xxx" |
| 60 | + # |
| 61 | + # GroupDocsAnnotationCloud.from_keys(app_sid, app_key) |
| 62 | + def from_keys(app_sid, app_key) |
| 63 | + AnnotationApi.from_keys(app_sid, app_key) |
| 64 | + end |
| 65 | + |
| 66 | + # Initialize SDK with Configuration. |
| 67 | + # |
| 68 | + # app_sid = "xxx" |
| 69 | + # app_key = "xxx" |
| 70 | + # |
| 71 | + # config = GroupDocsAnnotationCloud::Configuration.new(app_sid, app_key) |
| 72 | + # config.debugging = true |
| 73 | + # config.temp_folder_path = "./temp" |
| 74 | + # |
| 75 | + # GroupDocsAnnotationCloud.from_config(config) |
| 76 | + def from_config(config) |
| 77 | + AnnotationApi.from_config(config) |
| 78 | + end |
| 79 | + end |
| 80 | +end |
0 commit comments