GiphyClient 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (157) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/Gemfile.lock +69 -0
  4. data/GiphyClient.gemspec +44 -0
  5. data/README.md +152 -0
  6. data/Rakefile +7 -0
  7. data/config.json +18 -0
  8. data/docs/BaseChannelModel.md +36 -0
  9. data/docs/BaseChannelModelGifs.md +9 -0
  10. data/docs/Breadcrumb.md +10 -0
  11. data/docs/Category.md +11 -0
  12. data/docs/ChannelWithChildrenModel.md +37 -0
  13. data/docs/ChannelWithChildrenModelChildren.md +9 -0
  14. data/docs/DefaultApi.md +731 -0
  15. data/docs/Gif.md +36 -0
  16. data/docs/GifImages.md +27 -0
  17. data/docs/GifImagesDownsized.md +11 -0
  18. data/docs/GifImagesDownsizedLarge.md +11 -0
  19. data/docs/GifImagesDownsizedMedium.md +11 -0
  20. data/docs/GifImagesDownsizedSmall.md +11 -0
  21. data/docs/GifImagesDownsizedStill.md +10 -0
  22. data/docs/GifImagesFixedHeight.md +15 -0
  23. data/docs/GifImagesFixedHeightDownsampled.md +13 -0
  24. data/docs/GifImagesFixedHeightSmall.md +15 -0
  25. data/docs/GifImagesFixedHeightSmallStill.md +10 -0
  26. data/docs/GifImagesFixedHeightStill.md +10 -0
  27. data/docs/GifImagesFixedWidth.md +15 -0
  28. data/docs/GifImagesFixedWidthDownsampled.md +13 -0
  29. data/docs/GifImagesFixedWidthSmall.md +15 -0
  30. data/docs/GifImagesFixedWidthSmallStill.md +10 -0
  31. data/docs/GifImagesFixedWidthStill.md +10 -0
  32. data/docs/GifImagesLooping.md +8 -0
  33. data/docs/GifImagesOriginal.md +16 -0
  34. data/docs/GifImagesOriginalStill.md +10 -0
  35. data/docs/GifImagesPreview.md +11 -0
  36. data/docs/GifImagesPreviewGif.md +11 -0
  37. data/docs/InlineResponse200.md +10 -0
  38. data/docs/InlineResponse2001.md +9 -0
  39. data/docs/InlineResponse2002.md +9 -0
  40. data/docs/InlineResponse2003.md +10 -0
  41. data/docs/InlineResponse2004.md +10 -0
  42. data/docs/InlineResponse2005.md +10 -0
  43. data/docs/InlineResponse400.md +8 -0
  44. data/docs/LastChildModel.md +37 -0
  45. data/docs/LastChildModelChildren.md +9 -0
  46. data/docs/MetaContent.md +10 -0
  47. data/docs/MetaObject.md +8 -0
  48. data/docs/Pagination.md +10 -0
  49. data/docs/RandomGif.md +30 -0
  50. data/docs/ShallowTag.md +9 -0
  51. data/docs/Tag.md +9 -0
  52. data/docs/TrendingTag.md +10 -0
  53. data/docs/User.md +13 -0
  54. data/generate.sh +12 -0
  55. data/git_push.sh +55 -0
  56. data/lib/GiphyClient.rb +84 -0
  57. data/lib/GiphyClient/api/default_api.rb +952 -0
  58. data/lib/GiphyClient/api_client.rb +375 -0
  59. data/lib/GiphyClient/api_error.rb +37 -0
  60. data/lib/GiphyClient/configuration.rb +195 -0
  61. data/lib/GiphyClient/models/base_channel_model.rb +464 -0
  62. data/lib/GiphyClient/models/base_channel_model_gifs.rb +198 -0
  63. data/lib/GiphyClient/models/breadcrumb.rb +205 -0
  64. data/lib/GiphyClient/models/category.rb +220 -0
  65. data/lib/GiphyClient/models/channel_with_children_model.rb +473 -0
  66. data/lib/GiphyClient/models/channel_with_children_model_children.rb +198 -0
  67. data/lib/GiphyClient/models/gif.rb +473 -0
  68. data/lib/GiphyClient/models/gif_images.rb +358 -0
  69. data/lib/GiphyClient/models/gif_images_downsized.rb +218 -0
  70. data/lib/GiphyClient/models/gif_images_downsized_large.rb +218 -0
  71. data/lib/GiphyClient/models/gif_images_downsized_medium.rb +218 -0
  72. data/lib/GiphyClient/models/gif_images_downsized_small.rb +218 -0
  73. data/lib/GiphyClient/models/gif_images_downsized_still.rb +208 -0
  74. data/lib/GiphyClient/models/gif_images_fixed_height.rb +258 -0
  75. data/lib/GiphyClient/models/gif_images_fixed_height_downsampled.rb +238 -0
  76. data/lib/GiphyClient/models/gif_images_fixed_height_small.rb +258 -0
  77. data/lib/GiphyClient/models/gif_images_fixed_height_small_still.rb +208 -0
  78. data/lib/GiphyClient/models/gif_images_fixed_height_still.rb +208 -0
  79. data/lib/GiphyClient/models/gif_images_fixed_width.rb +258 -0
  80. data/lib/GiphyClient/models/gif_images_fixed_width_downsampled.rb +238 -0
  81. data/lib/GiphyClient/models/gif_images_fixed_width_small.rb +258 -0
  82. data/lib/GiphyClient/models/gif_images_fixed_width_small_still.rb +208 -0
  83. data/lib/GiphyClient/models/gif_images_fixed_width_still.rb +208 -0
  84. data/lib/GiphyClient/models/gif_images_looping.rb +188 -0
  85. data/lib/GiphyClient/models/gif_images_original.rb +268 -0
  86. data/lib/GiphyClient/models/gif_images_original_still.rb +208 -0
  87. data/lib/GiphyClient/models/gif_images_preview.rb +218 -0
  88. data/lib/GiphyClient/models/gif_images_preview_gif.rb +218 -0
  89. data/lib/GiphyClient/models/inline_response_200.rb +209 -0
  90. data/lib/GiphyClient/models/inline_response_200_1.rb +197 -0
  91. data/lib/GiphyClient/models/inline_response_200_2.rb +197 -0
  92. data/lib/GiphyClient/models/inline_response_200_3.rb +207 -0
  93. data/lib/GiphyClient/models/inline_response_200_4.rb +207 -0
  94. data/lib/GiphyClient/models/inline_response_200_5.rb +207 -0
  95. data/lib/GiphyClient/models/inline_response_400.rb +187 -0
  96. data/lib/GiphyClient/models/last_child_model.rb +473 -0
  97. data/lib/GiphyClient/models/last_child_model_children.rb +198 -0
  98. data/lib/GiphyClient/models/meta_content.rb +218 -0
  99. data/lib/GiphyClient/models/meta_object.rb +187 -0
  100. data/lib/GiphyClient/models/pagination.rb +208 -0
  101. data/lib/GiphyClient/models/random_gif.rb +401 -0
  102. data/lib/GiphyClient/models/shallow_tag.rb +198 -0
  103. data/lib/GiphyClient/models/tag.rb +198 -0
  104. data/lib/GiphyClient/models/trending_tag.rb +205 -0
  105. data/lib/GiphyClient/models/user.rb +238 -0
  106. data/lib/GiphyClient/version.rb +14 -0
  107. data/public.yaml +1638 -0
  108. data/spec/api/default_api_spec.rb +260 -0
  109. data/spec/api_client_spec.rb +225 -0
  110. data/spec/configuration_spec.rb +41 -0
  111. data/spec/models/base_channel_model_gifs_spec.rb +47 -0
  112. data/spec/models/base_channel_model_spec.rb +209 -0
  113. data/spec/models/breadcrumb_spec.rb +53 -0
  114. data/spec/models/category_spec.rb +59 -0
  115. data/spec/models/channel_with_children_model_children_spec.rb +47 -0
  116. data/spec/models/channel_with_children_model_spec.rb +215 -0
  117. data/spec/models/gif_images_downsized_large_spec.rb +59 -0
  118. data/spec/models/gif_images_downsized_medium_spec.rb +59 -0
  119. data/spec/models/gif_images_downsized_small_spec.rb +59 -0
  120. data/spec/models/gif_images_downsized_spec.rb +59 -0
  121. data/spec/models/gif_images_downsized_still_spec.rb +53 -0
  122. data/spec/models/gif_images_fixed_height_downsampled_spec.rb +71 -0
  123. data/spec/models/gif_images_fixed_height_small_spec.rb +83 -0
  124. data/spec/models/gif_images_fixed_height_small_still_spec.rb +53 -0
  125. data/spec/models/gif_images_fixed_height_spec.rb +83 -0
  126. data/spec/models/gif_images_fixed_height_still_spec.rb +53 -0
  127. data/spec/models/gif_images_fixed_width_downsampled_spec.rb +71 -0
  128. data/spec/models/gif_images_fixed_width_small_spec.rb +83 -0
  129. data/spec/models/gif_images_fixed_width_small_still_spec.rb +53 -0
  130. data/spec/models/gif_images_fixed_width_spec.rb +83 -0
  131. data/spec/models/gif_images_fixed_width_still_spec.rb +53 -0
  132. data/spec/models/gif_images_looping_spec.rb +41 -0
  133. data/spec/models/gif_images_original_spec.rb +89 -0
  134. data/spec/models/gif_images_original_still_spec.rb +53 -0
  135. data/spec/models/gif_images_preview_gif_spec.rb +59 -0
  136. data/spec/models/gif_images_preview_spec.rb +59 -0
  137. data/spec/models/gif_images_spec.rb +155 -0
  138. data/spec/models/gif_spec.rb +209 -0
  139. data/spec/models/inline_response_200_1_spec.rb +47 -0
  140. data/spec/models/inline_response_200_2_spec.rb +47 -0
  141. data/spec/models/inline_response_200_3_spec.rb +53 -0
  142. data/spec/models/inline_response_200_4_spec.rb +53 -0
  143. data/spec/models/inline_response_200_5_spec.rb +53 -0
  144. data/spec/models/inline_response_200_spec.rb +53 -0
  145. data/spec/models/inline_response_400_spec.rb +41 -0
  146. data/spec/models/last_child_model_children_spec.rb +47 -0
  147. data/spec/models/last_child_model_spec.rb +215 -0
  148. data/spec/models/meta_content_spec.rb +53 -0
  149. data/spec/models/meta_object_spec.rb +41 -0
  150. data/spec/models/pagination_spec.rb +53 -0
  151. data/spec/models/random_gif_spec.rb +173 -0
  152. data/spec/models/shallow_tag_spec.rb +47 -0
  153. data/spec/models/tag_spec.rb +47 -0
  154. data/spec/models/trending_tag_spec.rb +53 -0
  155. data/spec/models/user_spec.rb +71 -0
  156. data/spec/spec_helper.rb +110 -0
  157. metadata +428 -0
@@ -0,0 +1,9 @@
1
+ # GiphyClient::LastChildModelChildren
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **data** | [**Array<BaseChannelModel>**](BaseChannelModel.md) | | [optional]
7
+ **pagination** | [**Pagination**](Pagination.md) | | [optional]
8
+
9
+
@@ -0,0 +1,10 @@
1
+ # GiphyClient::MetaContent
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **msg** | **String** | HTTP Response Message |
7
+ **status** | **Integer** | HTTP Response Code |
8
+ **response_id** | **String** | A unique ID paired with this response from the API. | [optional]
9
+
10
+
@@ -0,0 +1,8 @@
1
+ # GiphyClient::MetaObject
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **meta** | [**MetaContent**](MetaContent.md) | | [optional]
7
+
8
+
@@ -0,0 +1,10 @@
1
+ # GiphyClient::Pagination
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **offset** | **Integer** | Position in pagination. | [optional]
7
+ **total_count** | **Integer** | Total number of items available. | [optional]
8
+ **count** | **Integer** | Total number of items returned. | [optional]
9
+
10
+
data/docs/RandomGif.md ADDED
@@ -0,0 +1,30 @@
1
+ # GiphyClient::RandomGif
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **type** | **String** | By default, this is almost always gif | [optional] [default to "gif"]
7
+ **id** | **String** | This GIF's unique ID | [optional]
8
+ **url** | **String** | The URL for this preview GIF. | [optional]
9
+ **image_original_url** | **String** | The URL for the original preview GIF. | [optional]
10
+ **image_url** | **String** | The URL for this preview GIF. | [optional]
11
+ **image_mp4_url** | **String** | The URL for this preview GIF. | [optional]
12
+ **image_frames** | **String** | The number of frames in this GIF. | [optional]
13
+ **image_width** | **String** | The width of this GIF. | [optional]
14
+ **image_height** | **String** | The height of this GIF. | [optional]
15
+ **fixed_height_downsampled_url** | **String** | A version of this GIF with a fixed height of 200 pixels and the number of frames reduced to 6. | [optional]
16
+ **fixed_height_downsampled_width** | **String** | | [optional]
17
+ **fixed_height_downsampled_height** | **String** | | [optional]
18
+ **fixed_width_downsampled_url** | **String** | A version of this GIF with a fixed width of 200 pixels and the number of frames reduced to 6. | [optional]
19
+ **fixed_width_downsampled_width** | **String** | | [optional]
20
+ **fixed_width_downsampled_height** | **String** | | [optional]
21
+ **fixed_height_small_url** | **String** | A version of this GIF with a fixed height of 100 pixels and the number of frames reduced to 6. | [optional]
22
+ **fixed_height_small_still_url** | **String** | A still version of this gif. | [optional]
23
+ **fixed_height_small_width** | **String** | | [optional]
24
+ **fixed_height_small_height** | **String** | | [optional]
25
+ **fixed_width_small_url** | **String** | | [optional]
26
+ **fixed_width_small_still_url** | **String** | A still version of this GIF with a fixed width of 100 pixels. | [optional]
27
+ **fixed_width_small_width** | **String** | | [optional]
28
+ **fixed_width_small_height** | **String** | | [optional]
29
+
30
+
@@ -0,0 +1,9 @@
1
+ # GiphyClient::ShallowTag
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **name** | **String** | Category name | [optional]
7
+ **name_encoded** | **String** | Category name, with dashes instead of spaces. | [optional]
8
+
9
+
data/docs/Tag.md ADDED
@@ -0,0 +1,9 @@
1
+ # GiphyClient::Tag
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **name** | **String** | Category name | [optional]
7
+ **gif** | [**Gif**](Gif.md) | A gif which can be used as the icon for this category. | [optional]
8
+
9
+
@@ -0,0 +1,10 @@
1
+ # GiphyClient::TrendingTag
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **Integer** | | [optional]
7
+ **name_encoded** | **String** | | [optional]
8
+ **name** | **String** | | [optional]
9
+
10
+
data/docs/User.md ADDED
@@ -0,0 +1,13 @@
1
+ # GiphyClient::User
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **avatar_url** | **String** | The URL for this user's avatar image. | [optional]
7
+ **banner_url** | **String** | The URL for the banner image that appears atop this user's profile page. | [optional]
8
+ **profile_url** | **String** | The URL for this user's profile. | [optional]
9
+ **username** | **String** | The username associated with this user. | [optional]
10
+ **display_name** | **String** | The display name associated with this user (contains formatting the base username might not). | [optional]
11
+ **twitter** | **String** | The Twitter username associated with this user, if applicable. | [optional]
12
+
13
+
data/generate.sh ADDED
@@ -0,0 +1,12 @@
1
+ #!/bin/bash
2
+
3
+ LANG=ruby
4
+ CONFIG=config.json
5
+ SRC=public.yaml
6
+
7
+ swagger-codegen generate \
8
+ -i $SRC \
9
+ -l $LANG \
10
+ -c $CONFIG \
11
+ -o "."
12
+
data/git_push.sh ADDED
@@ -0,0 +1,55 @@
1
+ #!/bin/sh
2
+ #
3
+ # Generated by: https://github.com/swagger-api/swagger-codegen.git
4
+ #
5
+ # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
6
+ #
7
+ # Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
8
+
9
+ git_user_id=$1
10
+ git_repo_id=$2
11
+ release_note=$3
12
+
13
+ if [ "$git_user_id" = "" ]; then
14
+ git_user_id="GIT_USER_ID"
15
+ echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
16
+ fi
17
+
18
+ if [ "$git_repo_id" = "" ]; then
19
+ git_repo_id="GIT_REPO_ID"
20
+ echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
21
+ fi
22
+
23
+ if [ "$release_note" = "" ]; then
24
+ release_note="Minor update"
25
+ echo "[INFO] No command line input provided. Set \$release_note to $release_note"
26
+ fi
27
+
28
+ # Initialize the local directory as a Git repository
29
+ git init
30
+
31
+ # Adds the files in the local repository and stages them for commit.
32
+ git add .
33
+
34
+ # Commits the tracked changes and prepares them to be pushed to a remote repository.
35
+ git commit -m "$release_note"
36
+
37
+ # Sets the new remote
38
+ git_remote=`git remote`
39
+ if [ "$git_remote" = "" ]; then # git remote not defined
40
+
41
+ if [ "$GIT_TOKEN" = "" ]; then
42
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git crediential in your environment."
43
+ git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
44
+ else
45
+ git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
46
+ fi
47
+
48
+ fi
49
+
50
+ git pull origin master
51
+
52
+ # Pushes (Forces) the changes in the local repository up to the remote repository
53
+ echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
54
+ git push origin master 2>&1 | grep -v 'To https'
55
+
@@ -0,0 +1,84 @@
1
+ =begin
2
+ #giphy-api
3
+
4
+ #Giphy's public api.
5
+
6
+ OpenAPI spec version: 0.9.3
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ =end
11
+
12
+ # Common files
13
+ require 'GiphyClient/api_client'
14
+ require 'GiphyClient/api_error'
15
+ require 'GiphyClient/version'
16
+ require 'GiphyClient/configuration'
17
+
18
+ # Models
19
+ require 'GiphyClient/models/base_channel_model'
20
+ require 'GiphyClient/models/base_channel_model_gifs'
21
+ require 'GiphyClient/models/breadcrumb'
22
+ require 'GiphyClient/models/category'
23
+ require 'GiphyClient/models/channel_with_children_model'
24
+ require 'GiphyClient/models/channel_with_children_model_children'
25
+ require 'GiphyClient/models/gif'
26
+ require 'GiphyClient/models/gif_images'
27
+ require 'GiphyClient/models/gif_images_downsized'
28
+ require 'GiphyClient/models/gif_images_downsized_large'
29
+ require 'GiphyClient/models/gif_images_downsized_medium'
30
+ require 'GiphyClient/models/gif_images_downsized_small'
31
+ require 'GiphyClient/models/gif_images_downsized_still'
32
+ require 'GiphyClient/models/gif_images_fixed_height'
33
+ require 'GiphyClient/models/gif_images_fixed_height_downsampled'
34
+ require 'GiphyClient/models/gif_images_fixed_height_small'
35
+ require 'GiphyClient/models/gif_images_fixed_height_small_still'
36
+ require 'GiphyClient/models/gif_images_fixed_height_still'
37
+ require 'GiphyClient/models/gif_images_fixed_width'
38
+ require 'GiphyClient/models/gif_images_fixed_width_downsampled'
39
+ require 'GiphyClient/models/gif_images_fixed_width_small'
40
+ require 'GiphyClient/models/gif_images_fixed_width_small_still'
41
+ require 'GiphyClient/models/gif_images_fixed_width_still'
42
+ require 'GiphyClient/models/gif_images_looping'
43
+ require 'GiphyClient/models/gif_images_original'
44
+ require 'GiphyClient/models/gif_images_original_still'
45
+ require 'GiphyClient/models/gif_images_preview'
46
+ require 'GiphyClient/models/gif_images_preview_gif'
47
+ require 'GiphyClient/models/inline_response_200'
48
+ require 'GiphyClient/models/inline_response_200_1'
49
+ require 'GiphyClient/models/inline_response_200_2'
50
+ require 'GiphyClient/models/inline_response_200_3'
51
+ require 'GiphyClient/models/inline_response_200_4'
52
+ require 'GiphyClient/models/inline_response_200_5'
53
+ require 'GiphyClient/models/inline_response_400'
54
+ require 'GiphyClient/models/last_child_model'
55
+ require 'GiphyClient/models/last_child_model_children'
56
+ require 'GiphyClient/models/meta_content'
57
+ require 'GiphyClient/models/meta_object'
58
+ require 'GiphyClient/models/pagination'
59
+ require 'GiphyClient/models/random_gif'
60
+ require 'GiphyClient/models/shallow_tag'
61
+ require 'GiphyClient/models/tag'
62
+ require 'GiphyClient/models/trending_tag'
63
+ require 'GiphyClient/models/user'
64
+
65
+ # APIs
66
+ require 'GiphyClient/api/default_api'
67
+
68
+ module GiphyClient
69
+ class << self
70
+ # Customize default settings for the SDK using block.
71
+ # GiphyClient.configure do |config|
72
+ # config.username = "xxx"
73
+ # config.password = "xxx"
74
+ # end
75
+ # If no block given, return the default Configuration object.
76
+ def configure
77
+ if block_given?
78
+ yield(Configuration.default)
79
+ else
80
+ Configuration.default
81
+ end
82
+ end
83
+ end
84
+ end
@@ -0,0 +1,952 @@
1
+ =begin
2
+ #giphy-api
3
+
4
+ #Giphy's public api.
5
+
6
+ OpenAPI spec version: 0.9.3
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ =end
11
+
12
+ require "uri"
13
+
14
+ module GiphyClient
15
+ class DefaultApi
16
+ attr_accessor :api_client
17
+
18
+ def initialize(api_client = ApiClient.default)
19
+ @api_client = api_client
20
+ end
21
+
22
+ # Category Tags Endpoint.
23
+ # Returns a list of tags for a given category. NOTE `limit` and `offset` must both be set; otherwise they're ignored.
24
+ # @param api_key Giphy API Key.
25
+ # @param category Filters results by category.
26
+ # @param [Hash] opts the optional parameters
27
+ # @option opts [Integer] :limit The maximum number of records to return. (default to 25)
28
+ # @option opts [Integer] :offset An optional results offset. Defaults to 0. (default to 0)
29
+ # @return [InlineResponse2004]
30
+ def gifs_categories_category_get(api_key, category, opts = {})
31
+ data, _status_code, _headers = gifs_categories_category_get_with_http_info(api_key, category, opts)
32
+ return data
33
+ end
34
+
35
+ # Category Tags Endpoint.
36
+ # Returns a list of tags for a given category. NOTE &#x60;limit&#x60; and &#x60;offset&#x60; must both be set; otherwise they&#39;re ignored.
37
+ # @param api_key Giphy API Key.
38
+ # @param category Filters results by category.
39
+ # @param [Hash] opts the optional parameters
40
+ # @option opts [Integer] :limit The maximum number of records to return.
41
+ # @option opts [Integer] :offset An optional results offset. Defaults to 0.
42
+ # @return [Array<(InlineResponse2004, Fixnum, Hash)>] InlineResponse2004 data, response status code and response headers
43
+ def gifs_categories_category_get_with_http_info(api_key, category, opts = {})
44
+ if @api_client.config.debugging
45
+ @api_client.config.logger.debug "Calling API: DefaultApi.gifs_categories_category_get ..."
46
+ end
47
+ # verify the required parameter 'api_key' is set
48
+ fail ArgumentError, "Missing the required parameter 'api_key' when calling DefaultApi.gifs_categories_category_get" if api_key.nil?
49
+ # verify the required parameter 'category' is set
50
+ fail ArgumentError, "Missing the required parameter 'category' when calling DefaultApi.gifs_categories_category_get" if category.nil?
51
+ if !opts[:'limit'].nil? && opts[:'limit'] > 100
52
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.gifs_categories_category_get, must be smaller than or equal to 100.'
53
+ end
54
+
55
+ if !opts[:'limit'].nil? && opts[:'limit'] < 1
56
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.gifs_categories_category_get, must be greater than or equal to 1.'
57
+ end
58
+
59
+ if !opts[:'offset'].nil? && opts[:'offset'] > 100
60
+ fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.gifs_categories_category_get, must be smaller than or equal to 100.'
61
+ end
62
+
63
+ if !opts[:'offset'].nil? && opts[:'offset'] < 0
64
+ fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.gifs_categories_category_get, must be greater than or equal to 0.'
65
+ end
66
+
67
+ # resource path
68
+ local_var_path = "/gifs/categories/{category}".sub('{format}','json').sub('{' + 'category' + '}', category.to_s)
69
+
70
+ # query parameters
71
+ query_params = {}
72
+ query_params[:'api_key'] = api_key
73
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
74
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
75
+
76
+ # header parameters
77
+ header_params = {}
78
+ # HTTP header 'Accept' (if needed)
79
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
80
+ # HTTP header 'Content-Type'
81
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
82
+
83
+ # form parameters
84
+ form_params = {}
85
+
86
+ # http body (model)
87
+ post_body = nil
88
+ auth_names = []
89
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
90
+ :header_params => header_params,
91
+ :query_params => query_params,
92
+ :form_params => form_params,
93
+ :body => post_body,
94
+ :auth_names => auth_names,
95
+ :return_type => 'InlineResponse2004')
96
+ if @api_client.config.debugging
97
+ @api_client.config.logger.debug "API called: DefaultApi#gifs_categories_category_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
98
+ end
99
+ return data, status_code, headers
100
+ end
101
+
102
+ # Tagged Gifs Endpoint.
103
+ # Returns a list of gifs for a given tag (alias to `/gif/search`).
104
+ # @param api_key Giphy API Key.
105
+ # @param category Filters results by category.
106
+ # @param tag Filters results by tag.
107
+ # @param [Hash] opts the optional parameters
108
+ # @option opts [Integer] :limit The maximum number of records to return. (default to 25)
109
+ # @option opts [Integer] :offset An optional results offset. Defaults to 0. (default to 0)
110
+ # @return [InlineResponse2005]
111
+ def gifs_categories_category_tag_get(api_key, category, tag, opts = {})
112
+ data, _status_code, _headers = gifs_categories_category_tag_get_with_http_info(api_key, category, tag, opts)
113
+ return data
114
+ end
115
+
116
+ # Tagged Gifs Endpoint.
117
+ # Returns a list of gifs for a given tag (alias to &#x60;/gif/search&#x60;).
118
+ # @param api_key Giphy API Key.
119
+ # @param category Filters results by category.
120
+ # @param tag Filters results by tag.
121
+ # @param [Hash] opts the optional parameters
122
+ # @option opts [Integer] :limit The maximum number of records to return.
123
+ # @option opts [Integer] :offset An optional results offset. Defaults to 0.
124
+ # @return [Array<(InlineResponse2005, Fixnum, Hash)>] InlineResponse2005 data, response status code and response headers
125
+ def gifs_categories_category_tag_get_with_http_info(api_key, category, tag, opts = {})
126
+ if @api_client.config.debugging
127
+ @api_client.config.logger.debug "Calling API: DefaultApi.gifs_categories_category_tag_get ..."
128
+ end
129
+ # verify the required parameter 'api_key' is set
130
+ fail ArgumentError, "Missing the required parameter 'api_key' when calling DefaultApi.gifs_categories_category_tag_get" if api_key.nil?
131
+ # verify the required parameter 'category' is set
132
+ fail ArgumentError, "Missing the required parameter 'category' when calling DefaultApi.gifs_categories_category_tag_get" if category.nil?
133
+ # verify the required parameter 'tag' is set
134
+ fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.gifs_categories_category_tag_get" if tag.nil?
135
+ if !opts[:'limit'].nil? && opts[:'limit'] > 100
136
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.gifs_categories_category_tag_get, must be smaller than or equal to 100.'
137
+ end
138
+
139
+ if !opts[:'limit'].nil? && opts[:'limit'] < 1
140
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.gifs_categories_category_tag_get, must be greater than or equal to 1.'
141
+ end
142
+
143
+ if !opts[:'offset'].nil? && opts[:'offset'] > 100
144
+ fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.gifs_categories_category_tag_get, must be smaller than or equal to 100.'
145
+ end
146
+
147
+ if !opts[:'offset'].nil? && opts[:'offset'] < 0
148
+ fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.gifs_categories_category_tag_get, must be greater than or equal to 0.'
149
+ end
150
+
151
+ # resource path
152
+ local_var_path = "/gifs/categories/{category}/{tag}".sub('{format}','json').sub('{' + 'category' + '}', category.to_s).sub('{' + 'tag' + '}', tag.to_s)
153
+
154
+ # query parameters
155
+ query_params = {}
156
+ query_params[:'api_key'] = api_key
157
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
158
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
159
+
160
+ # header parameters
161
+ header_params = {}
162
+ # HTTP header 'Accept' (if needed)
163
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
164
+ # HTTP header 'Content-Type'
165
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
166
+
167
+ # form parameters
168
+ form_params = {}
169
+
170
+ # http body (model)
171
+ post_body = nil
172
+ auth_names = []
173
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
174
+ :header_params => header_params,
175
+ :query_params => query_params,
176
+ :form_params => form_params,
177
+ :body => post_body,
178
+ :auth_names => auth_names,
179
+ :return_type => 'InlineResponse2005')
180
+ if @api_client.config.debugging
181
+ @api_client.config.logger.debug "API called: DefaultApi#gifs_categories_category_tag_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
182
+ end
183
+ return data, status_code, headers
184
+ end
185
+
186
+ # Categories Endpoint.
187
+ # Returns a list of categories.
188
+ # @param api_key Giphy API Key.
189
+ # @param [Hash] opts the optional parameters
190
+ # @option opts [Integer] :limit The maximum number of records to return. (default to 25)
191
+ # @return [InlineResponse2003]
192
+ def gifs_categories_get(api_key, opts = {})
193
+ data, _status_code, _headers = gifs_categories_get_with_http_info(api_key, opts)
194
+ return data
195
+ end
196
+
197
+ # Categories Endpoint.
198
+ # Returns a list of categories.
199
+ # @param api_key Giphy API Key.
200
+ # @param [Hash] opts the optional parameters
201
+ # @option opts [Integer] :limit The maximum number of records to return.
202
+ # @return [Array<(InlineResponse2003, Fixnum, Hash)>] InlineResponse2003 data, response status code and response headers
203
+ def gifs_categories_get_with_http_info(api_key, opts = {})
204
+ if @api_client.config.debugging
205
+ @api_client.config.logger.debug "Calling API: DefaultApi.gifs_categories_get ..."
206
+ end
207
+ # verify the required parameter 'api_key' is set
208
+ fail ArgumentError, "Missing the required parameter 'api_key' when calling DefaultApi.gifs_categories_get" if api_key.nil?
209
+ if !opts[:'limit'].nil? && opts[:'limit'] > 100
210
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.gifs_categories_get, must be smaller than or equal to 100.'
211
+ end
212
+
213
+ if !opts[:'limit'].nil? && opts[:'limit'] < 1
214
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.gifs_categories_get, must be greater than or equal to 1.'
215
+ end
216
+
217
+ # resource path
218
+ local_var_path = "/gifs/categories".sub('{format}','json')
219
+
220
+ # query parameters
221
+ query_params = {}
222
+ query_params[:'api_key'] = api_key
223
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
224
+
225
+ # header parameters
226
+ header_params = {}
227
+ # HTTP header 'Accept' (if needed)
228
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
229
+ # HTTP header 'Content-Type'
230
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
231
+
232
+ # form parameters
233
+ form_params = {}
234
+
235
+ # http body (model)
236
+ post_body = nil
237
+ auth_names = []
238
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
239
+ :header_params => header_params,
240
+ :query_params => query_params,
241
+ :form_params => form_params,
242
+ :body => post_body,
243
+ :auth_names => auth_names,
244
+ :return_type => 'InlineResponse2003')
245
+ if @api_client.config.debugging
246
+ @api_client.config.logger.debug "API called: DefaultApi#gifs_categories_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
247
+ end
248
+ return data, status_code, headers
249
+ end
250
+
251
+ # Get GIFs by ID Endpoint
252
+ # A multiget version of the get GIF by ID endpoint.
253
+ # @param api_key Giphy API Key.
254
+ # @param ids Filters results by specified GIF IDs, separated by commas.
255
+ # @param [Hash] opts the optional parameters
256
+ # @return [InlineResponse200]
257
+ def gifs_get(api_key, ids, opts = {})
258
+ data, _status_code, _headers = gifs_get_with_http_info(api_key, ids, opts)
259
+ return data
260
+ end
261
+
262
+ # Get GIFs by ID Endpoint
263
+ # A multiget version of the get GIF by ID endpoint.
264
+ # @param api_key Giphy API Key.
265
+ # @param ids Filters results by specified GIF IDs, separated by commas.
266
+ # @param [Hash] opts the optional parameters
267
+ # @return [Array<(InlineResponse200, Fixnum, Hash)>] InlineResponse200 data, response status code and response headers
268
+ def gifs_get_with_http_info(api_key, ids, opts = {})
269
+ if @api_client.config.debugging
270
+ @api_client.config.logger.debug "Calling API: DefaultApi.gifs_get ..."
271
+ end
272
+ # verify the required parameter 'api_key' is set
273
+ fail ArgumentError, "Missing the required parameter 'api_key' when calling DefaultApi.gifs_get" if api_key.nil?
274
+ # verify the required parameter 'ids' is set
275
+ fail ArgumentError, "Missing the required parameter 'ids' when calling DefaultApi.gifs_get" if ids.nil?
276
+ # resource path
277
+ local_var_path = "/gifs".sub('{format}','json')
278
+
279
+ # query parameters
280
+ query_params = {}
281
+ query_params[:'api_key'] = api_key
282
+ query_params[:'ids'] = ids
283
+
284
+ # header parameters
285
+ header_params = {}
286
+ # HTTP header 'Accept' (if needed)
287
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
288
+ # HTTP header 'Content-Type'
289
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
290
+
291
+ # form parameters
292
+ form_params = {}
293
+
294
+ # http body (model)
295
+ post_body = nil
296
+ auth_names = []
297
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
298
+ :header_params => header_params,
299
+ :query_params => query_params,
300
+ :form_params => form_params,
301
+ :body => post_body,
302
+ :auth_names => auth_names,
303
+ :return_type => 'InlineResponse200')
304
+ if @api_client.config.debugging
305
+ @api_client.config.logger.debug "API called: DefaultApi#gifs_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
306
+ end
307
+ return data, status_code, headers
308
+ end
309
+
310
+ # Get GIF by ID Endpoint
311
+ # Returns a GIF given that GIF's unique ID
312
+ # @param api_key Giphy API Key.
313
+ # @param gif_id Filters results by specified GIF ID.
314
+ # @param [Hash] opts the optional parameters
315
+ # @return [InlineResponse2001]
316
+ def gifs_gif_id_get(api_key, gif_id, opts = {})
317
+ data, _status_code, _headers = gifs_gif_id_get_with_http_info(api_key, gif_id, opts)
318
+ return data
319
+ end
320
+
321
+ # Get GIF by ID Endpoint
322
+ # Returns a GIF given that GIF&#39;s unique ID
323
+ # @param api_key Giphy API Key.
324
+ # @param gif_id Filters results by specified GIF ID.
325
+ # @param [Hash] opts the optional parameters
326
+ # @return [Array<(InlineResponse2001, Fixnum, Hash)>] InlineResponse2001 data, response status code and response headers
327
+ def gifs_gif_id_get_with_http_info(api_key, gif_id, opts = {})
328
+ if @api_client.config.debugging
329
+ @api_client.config.logger.debug "Calling API: DefaultApi.gifs_gif_id_get ..."
330
+ end
331
+ # verify the required parameter 'api_key' is set
332
+ fail ArgumentError, "Missing the required parameter 'api_key' when calling DefaultApi.gifs_gif_id_get" if api_key.nil?
333
+ # verify the required parameter 'gif_id' is set
334
+ fail ArgumentError, "Missing the required parameter 'gif_id' when calling DefaultApi.gifs_gif_id_get" if gif_id.nil?
335
+ # resource path
336
+ local_var_path = "/gifs/{gif_id}".sub('{format}','json').sub('{' + 'gif_id' + '}', gif_id.to_s)
337
+
338
+ # query parameters
339
+ query_params = {}
340
+ query_params[:'api_key'] = api_key
341
+
342
+ # header parameters
343
+ header_params = {}
344
+ # HTTP header 'Accept' (if needed)
345
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
346
+ # HTTP header 'Content-Type'
347
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
348
+
349
+ # form parameters
350
+ form_params = {}
351
+
352
+ # http body (model)
353
+ post_body = nil
354
+ auth_names = []
355
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
356
+ :header_params => header_params,
357
+ :query_params => query_params,
358
+ :form_params => form_params,
359
+ :body => post_body,
360
+ :auth_names => auth_names,
361
+ :return_type => 'InlineResponse2001')
362
+ if @api_client.config.debugging
363
+ @api_client.config.logger.debug "API called: DefaultApi#gifs_gif_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
364
+ end
365
+ return data, status_code, headers
366
+ end
367
+
368
+ # Random Endpoint
369
+ # Returns a random GIF, limited by tag. Excluding the tag parameter will return a random GIF from the GIPHY catalog.
370
+ # @param api_key Giphy API Key.
371
+ # @param [Hash] opts the optional parameters
372
+ # @option opts [String] :tag Filters results by specified tag.
373
+ # @option opts [String] :rating Filters results by specified rating.
374
+ # @option opts [String] :fmt Used to indicate the expected response format. Default is Json. (default to json)
375
+ # @return [InlineResponse2002]
376
+ def gifs_random_get(api_key, opts = {})
377
+ data, _status_code, _headers = gifs_random_get_with_http_info(api_key, opts)
378
+ return data
379
+ end
380
+
381
+ # Random Endpoint
382
+ # Returns a random GIF, limited by tag. Excluding the tag parameter will return a random GIF from the GIPHY catalog.
383
+ # @param api_key Giphy API Key.
384
+ # @param [Hash] opts the optional parameters
385
+ # @option opts [String] :tag Filters results by specified tag.
386
+ # @option opts [String] :rating Filters results by specified rating.
387
+ # @option opts [String] :fmt Used to indicate the expected response format. Default is Json.
388
+ # @return [Array<(InlineResponse2002, Fixnum, Hash)>] InlineResponse2002 data, response status code and response headers
389
+ def gifs_random_get_with_http_info(api_key, opts = {})
390
+ if @api_client.config.debugging
391
+ @api_client.config.logger.debug "Calling API: DefaultApi.gifs_random_get ..."
392
+ end
393
+ # verify the required parameter 'api_key' is set
394
+ fail ArgumentError, "Missing the required parameter 'api_key' when calling DefaultApi.gifs_random_get" if api_key.nil?
395
+ if opts[:'fmt'] && !['json', 'html'].include?(opts[:'fmt'])
396
+ fail ArgumentError, 'invalid value for "fmt", must be one of json, html'
397
+ end
398
+ # resource path
399
+ local_var_path = "/gifs/random".sub('{format}','json')
400
+
401
+ # query parameters
402
+ query_params = {}
403
+ query_params[:'api_key'] = api_key
404
+ query_params[:'tag'] = opts[:'tag'] if !opts[:'tag'].nil?
405
+ query_params[:'rating'] = opts[:'rating'] if !opts[:'rating'].nil?
406
+ query_params[:'fmt'] = opts[:'fmt'] if !opts[:'fmt'].nil?
407
+
408
+ # header parameters
409
+ header_params = {}
410
+ # HTTP header 'Accept' (if needed)
411
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
412
+ # HTTP header 'Content-Type'
413
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
414
+
415
+ # form parameters
416
+ form_params = {}
417
+
418
+ # http body (model)
419
+ post_body = nil
420
+ auth_names = []
421
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
422
+ :header_params => header_params,
423
+ :query_params => query_params,
424
+ :form_params => form_params,
425
+ :body => post_body,
426
+ :auth_names => auth_names,
427
+ :return_type => 'InlineResponse2002')
428
+ if @api_client.config.debugging
429
+ @api_client.config.logger.debug "API called: DefaultApi#gifs_random_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
430
+ end
431
+ return data, status_code, headers
432
+ end
433
+
434
+ # Search Endpoint
435
+ # Search all Giphy GIFs for a word or phrase. Punctuation will be stripped and ignored. Use a plus or url encode for phrases. Example paul+rudd, ryan+gosling or american+psycho.
436
+ # @param api_key Giphy API Key.
437
+ # @param q Search query term or prhase.
438
+ # @param [Hash] opts the optional parameters
439
+ # @option opts [Integer] :limit The maximum number of records to return. (default to 25)
440
+ # @option opts [Integer] :offset An optional results offset. Defaults to 0. (default to 0)
441
+ # @option opts [String] :rating Filters results by specified rating.
442
+ # @option opts [String] :lang Specify default country for regional content; use a 2-letter ISO 639-1 country code. See list of supported languages &lt;a href &#x3D; \&quot;../language-support\&quot;&gt;here&lt;/a&gt;.
443
+ # @option opts [String] :fmt Used to indicate the expected response format. Default is Json. (default to json)
444
+ # @return [InlineResponse200]
445
+ def gifs_search_get(api_key, q, opts = {})
446
+ data, _status_code, _headers = gifs_search_get_with_http_info(api_key, q, opts)
447
+ return data
448
+ end
449
+
450
+ # Search Endpoint
451
+ # Search all Giphy GIFs for a word or phrase. Punctuation will be stripped and ignored. Use a plus or url encode for phrases. Example paul+rudd, ryan+gosling or american+psycho.
452
+ # @param api_key Giphy API Key.
453
+ # @param q Search query term or prhase.
454
+ # @param [Hash] opts the optional parameters
455
+ # @option opts [Integer] :limit The maximum number of records to return.
456
+ # @option opts [Integer] :offset An optional results offset. Defaults to 0.
457
+ # @option opts [String] :rating Filters results by specified rating.
458
+ # @option opts [String] :lang Specify default country for regional content; use a 2-letter ISO 639-1 country code. See list of supported languages &lt;a href &#x3D; \&quot;../language-support\&quot;&gt;here&lt;/a&gt;.
459
+ # @option opts [String] :fmt Used to indicate the expected response format. Default is Json.
460
+ # @return [Array<(InlineResponse200, Fixnum, Hash)>] InlineResponse200 data, response status code and response headers
461
+ def gifs_search_get_with_http_info(api_key, q, opts = {})
462
+ if @api_client.config.debugging
463
+ @api_client.config.logger.debug "Calling API: DefaultApi.gifs_search_get ..."
464
+ end
465
+ # verify the required parameter 'api_key' is set
466
+ fail ArgumentError, "Missing the required parameter 'api_key' when calling DefaultApi.gifs_search_get" if api_key.nil?
467
+ # verify the required parameter 'q' is set
468
+ fail ArgumentError, "Missing the required parameter 'q' when calling DefaultApi.gifs_search_get" if q.nil?
469
+ if !opts[:'limit'].nil? && opts[:'limit'] > 100
470
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.gifs_search_get, must be smaller than or equal to 100.'
471
+ end
472
+
473
+ if !opts[:'limit'].nil? && opts[:'limit'] < 1
474
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.gifs_search_get, must be greater than or equal to 1.'
475
+ end
476
+
477
+ if !opts[:'offset'].nil? && opts[:'offset'] > 100
478
+ fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.gifs_search_get, must be smaller than or equal to 100.'
479
+ end
480
+
481
+ if !opts[:'offset'].nil? && opts[:'offset'] < 0
482
+ fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.gifs_search_get, must be greater than or equal to 0.'
483
+ end
484
+
485
+ if opts[:'fmt'] && !['json', 'html'].include?(opts[:'fmt'])
486
+ fail ArgumentError, 'invalid value for "fmt", must be one of json, html'
487
+ end
488
+ # resource path
489
+ local_var_path = "/gifs/search".sub('{format}','json')
490
+
491
+ # query parameters
492
+ query_params = {}
493
+ query_params[:'api_key'] = api_key
494
+ query_params[:'q'] = q
495
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
496
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
497
+ query_params[:'rating'] = opts[:'rating'] if !opts[:'rating'].nil?
498
+ query_params[:'lang'] = opts[:'lang'] if !opts[:'lang'].nil?
499
+ query_params[:'fmt'] = opts[:'fmt'] if !opts[:'fmt'].nil?
500
+
501
+ # header parameters
502
+ header_params = {}
503
+ # HTTP header 'Accept' (if needed)
504
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
505
+ # HTTP header 'Content-Type'
506
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
507
+
508
+ # form parameters
509
+ form_params = {}
510
+
511
+ # http body (model)
512
+ post_body = nil
513
+ auth_names = []
514
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
515
+ :header_params => header_params,
516
+ :query_params => query_params,
517
+ :form_params => form_params,
518
+ :body => post_body,
519
+ :auth_names => auth_names,
520
+ :return_type => 'InlineResponse200')
521
+ if @api_client.config.debugging
522
+ @api_client.config.logger.debug "API called: DefaultApi#gifs_search_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
523
+ end
524
+ return data, status_code, headers
525
+ end
526
+
527
+ # Translate Endpoint
528
+ # The translate API draws on search, but uses the Giphy `special sauce` to handle translating from one vocabulary to another. In this case, words and phrases to GIFs.
529
+ # @param api_key Giphy API Key.
530
+ # @param s Search term.
531
+ # @param [Hash] opts the optional parameters
532
+ # @return [InlineResponse2001]
533
+ def gifs_translate_get(api_key, s, opts = {})
534
+ data, _status_code, _headers = gifs_translate_get_with_http_info(api_key, s, opts)
535
+ return data
536
+ end
537
+
538
+ # Translate Endpoint
539
+ # The translate API draws on search, but uses the Giphy &#x60;special sauce&#x60; to handle translating from one vocabulary to another. In this case, words and phrases to GIFs.
540
+ # @param api_key Giphy API Key.
541
+ # @param s Search term.
542
+ # @param [Hash] opts the optional parameters
543
+ # @return [Array<(InlineResponse2001, Fixnum, Hash)>] InlineResponse2001 data, response status code and response headers
544
+ def gifs_translate_get_with_http_info(api_key, s, opts = {})
545
+ if @api_client.config.debugging
546
+ @api_client.config.logger.debug "Calling API: DefaultApi.gifs_translate_get ..."
547
+ end
548
+ # verify the required parameter 'api_key' is set
549
+ fail ArgumentError, "Missing the required parameter 'api_key' when calling DefaultApi.gifs_translate_get" if api_key.nil?
550
+ # verify the required parameter 's' is set
551
+ fail ArgumentError, "Missing the required parameter 's' when calling DefaultApi.gifs_translate_get" if s.nil?
552
+ # resource path
553
+ local_var_path = "/gifs/translate".sub('{format}','json')
554
+
555
+ # query parameters
556
+ query_params = {}
557
+ query_params[:'api_key'] = api_key
558
+ query_params[:'s'] = s
559
+
560
+ # header parameters
561
+ header_params = {}
562
+ # HTTP header 'Accept' (if needed)
563
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
564
+ # HTTP header 'Content-Type'
565
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
566
+
567
+ # form parameters
568
+ form_params = {}
569
+
570
+ # http body (model)
571
+ post_body = nil
572
+ auth_names = []
573
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
574
+ :header_params => header_params,
575
+ :query_params => query_params,
576
+ :form_params => form_params,
577
+ :body => post_body,
578
+ :auth_names => auth_names,
579
+ :return_type => 'InlineResponse2001')
580
+ if @api_client.config.debugging
581
+ @api_client.config.logger.debug "API called: DefaultApi#gifs_translate_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
582
+ end
583
+ return data, status_code, headers
584
+ end
585
+
586
+ # Trending GIFs Endpoint
587
+ # Fetch GIFs currently trending online. Hand curated by the GIPHY editorial team. The data returned mirrors the GIFs showcased on the <a href = \"http://www.giphy.com\">GIPHY homepage</a>. Returns 25 results by default.
588
+ # @param api_key Giphy API Key.
589
+ # @param [Hash] opts the optional parameters
590
+ # @option opts [Integer] :limit The maximum number of records to return. (default to 25)
591
+ # @option opts [String] :rating Filters results by specified rating.
592
+ # @option opts [String] :fmt Used to indicate the expected response format. Default is Json. (default to json)
593
+ # @return [InlineResponse200]
594
+ def gifs_trending_get(api_key, opts = {})
595
+ data, _status_code, _headers = gifs_trending_get_with_http_info(api_key, opts)
596
+ return data
597
+ end
598
+
599
+ # Trending GIFs Endpoint
600
+ # Fetch GIFs currently trending online. Hand curated by the GIPHY editorial team. The data returned mirrors the GIFs showcased on the &lt;a href &#x3D; \&quot;http://www.giphy.com\&quot;&gt;GIPHY homepage&lt;/a&gt;. Returns 25 results by default.
601
+ # @param api_key Giphy API Key.
602
+ # @param [Hash] opts the optional parameters
603
+ # @option opts [Integer] :limit The maximum number of records to return.
604
+ # @option opts [String] :rating Filters results by specified rating.
605
+ # @option opts [String] :fmt Used to indicate the expected response format. Default is Json.
606
+ # @return [Array<(InlineResponse200, Fixnum, Hash)>] InlineResponse200 data, response status code and response headers
607
+ def gifs_trending_get_with_http_info(api_key, opts = {})
608
+ if @api_client.config.debugging
609
+ @api_client.config.logger.debug "Calling API: DefaultApi.gifs_trending_get ..."
610
+ end
611
+ # verify the required parameter 'api_key' is set
612
+ fail ArgumentError, "Missing the required parameter 'api_key' when calling DefaultApi.gifs_trending_get" if api_key.nil?
613
+ if !opts[:'limit'].nil? && opts[:'limit'] > 100
614
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.gifs_trending_get, must be smaller than or equal to 100.'
615
+ end
616
+
617
+ if !opts[:'limit'].nil? && opts[:'limit'] < 1
618
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.gifs_trending_get, must be greater than or equal to 1.'
619
+ end
620
+
621
+ if opts[:'fmt'] && !['json', 'html'].include?(opts[:'fmt'])
622
+ fail ArgumentError, 'invalid value for "fmt", must be one of json, html'
623
+ end
624
+ # resource path
625
+ local_var_path = "/gifs/trending".sub('{format}','json')
626
+
627
+ # query parameters
628
+ query_params = {}
629
+ query_params[:'api_key'] = api_key
630
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
631
+ query_params[:'rating'] = opts[:'rating'] if !opts[:'rating'].nil?
632
+ query_params[:'fmt'] = opts[:'fmt'] if !opts[:'fmt'].nil?
633
+
634
+ # header parameters
635
+ header_params = {}
636
+ # HTTP header 'Accept' (if needed)
637
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
638
+ # HTTP header 'Content-Type'
639
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
640
+
641
+ # form parameters
642
+ form_params = {}
643
+
644
+ # http body (model)
645
+ post_body = nil
646
+ auth_names = []
647
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
648
+ :header_params => header_params,
649
+ :query_params => query_params,
650
+ :form_params => form_params,
651
+ :body => post_body,
652
+ :auth_names => auth_names,
653
+ :return_type => 'InlineResponse200')
654
+ if @api_client.config.debugging
655
+ @api_client.config.logger.debug "API called: DefaultApi#gifs_trending_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
656
+ end
657
+ return data, status_code, headers
658
+ end
659
+
660
+ # Random Sticker Endpoint
661
+ # Returns a random GIF, limited by tag. Excluding the tag parameter will return a random GIF from the GIPHY catalog.
662
+ # @param api_key Giphy API Key.
663
+ # @param [Hash] opts the optional parameters
664
+ # @option opts [String] :tag Filters results by specified tag.
665
+ # @option opts [String] :rating Filters results by specified rating.
666
+ # @option opts [String] :fmt Used to indicate the expected response format. Default is Json. (default to json)
667
+ # @return [InlineResponse2002]
668
+ def stickers_random_get(api_key, opts = {})
669
+ data, _status_code, _headers = stickers_random_get_with_http_info(api_key, opts)
670
+ return data
671
+ end
672
+
673
+ # Random Sticker Endpoint
674
+ # Returns a random GIF, limited by tag. Excluding the tag parameter will return a random GIF from the GIPHY catalog.
675
+ # @param api_key Giphy API Key.
676
+ # @param [Hash] opts the optional parameters
677
+ # @option opts [String] :tag Filters results by specified tag.
678
+ # @option opts [String] :rating Filters results by specified rating.
679
+ # @option opts [String] :fmt Used to indicate the expected response format. Default is Json.
680
+ # @return [Array<(InlineResponse2002, Fixnum, Hash)>] InlineResponse2002 data, response status code and response headers
681
+ def stickers_random_get_with_http_info(api_key, opts = {})
682
+ if @api_client.config.debugging
683
+ @api_client.config.logger.debug "Calling API: DefaultApi.stickers_random_get ..."
684
+ end
685
+ # verify the required parameter 'api_key' is set
686
+ fail ArgumentError, "Missing the required parameter 'api_key' when calling DefaultApi.stickers_random_get" if api_key.nil?
687
+ if opts[:'fmt'] && !['json', 'html'].include?(opts[:'fmt'])
688
+ fail ArgumentError, 'invalid value for "fmt", must be one of json, html'
689
+ end
690
+ # resource path
691
+ local_var_path = "/stickers/random".sub('{format}','json')
692
+
693
+ # query parameters
694
+ query_params = {}
695
+ query_params[:'api_key'] = api_key
696
+ query_params[:'tag'] = opts[:'tag'] if !opts[:'tag'].nil?
697
+ query_params[:'rating'] = opts[:'rating'] if !opts[:'rating'].nil?
698
+ query_params[:'fmt'] = opts[:'fmt'] if !opts[:'fmt'].nil?
699
+
700
+ # header parameters
701
+ header_params = {}
702
+ # HTTP header 'Accept' (if needed)
703
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
704
+ # HTTP header 'Content-Type'
705
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
706
+
707
+ # form parameters
708
+ form_params = {}
709
+
710
+ # http body (model)
711
+ post_body = nil
712
+ auth_names = []
713
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
714
+ :header_params => header_params,
715
+ :query_params => query_params,
716
+ :form_params => form_params,
717
+ :body => post_body,
718
+ :auth_names => auth_names,
719
+ :return_type => 'InlineResponse2002')
720
+ if @api_client.config.debugging
721
+ @api_client.config.logger.debug "API called: DefaultApi#stickers_random_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
722
+ end
723
+ return data, status_code, headers
724
+ end
725
+
726
+ # Sticker Search Endpoint
727
+ # Replicates the functionality and requirements of the classic GIPHY search, but returns animated stickers rather than GIFs.
728
+ # @param api_key Giphy API Key.
729
+ # @param q Search query term or prhase.
730
+ # @param [Hash] opts the optional parameters
731
+ # @option opts [Integer] :limit The maximum number of records to return. (default to 25)
732
+ # @option opts [Integer] :offset An optional results offset. Defaults to 0. (default to 0)
733
+ # @option opts [String] :rating Filters results by specified rating.
734
+ # @option opts [String] :lang Specify default country for regional content; use a 2-letter ISO 639-1 country code. See list of supported languages &lt;a href &#x3D; \&quot;../language-support\&quot;&gt;here&lt;/a&gt;.
735
+ # @option opts [String] :fmt Used to indicate the expected response format. Default is Json. (default to json)
736
+ # @return [InlineResponse200]
737
+ def stickers_search_get(api_key, q, opts = {})
738
+ data, _status_code, _headers = stickers_search_get_with_http_info(api_key, q, opts)
739
+ return data
740
+ end
741
+
742
+ # Sticker Search Endpoint
743
+ # Replicates the functionality and requirements of the classic GIPHY search, but returns animated stickers rather than GIFs.
744
+ # @param api_key Giphy API Key.
745
+ # @param q Search query term or prhase.
746
+ # @param [Hash] opts the optional parameters
747
+ # @option opts [Integer] :limit The maximum number of records to return.
748
+ # @option opts [Integer] :offset An optional results offset. Defaults to 0.
749
+ # @option opts [String] :rating Filters results by specified rating.
750
+ # @option opts [String] :lang Specify default country for regional content; use a 2-letter ISO 639-1 country code. See list of supported languages &lt;a href &#x3D; \&quot;../language-support\&quot;&gt;here&lt;/a&gt;.
751
+ # @option opts [String] :fmt Used to indicate the expected response format. Default is Json.
752
+ # @return [Array<(InlineResponse200, Fixnum, Hash)>] InlineResponse200 data, response status code and response headers
753
+ def stickers_search_get_with_http_info(api_key, q, opts = {})
754
+ if @api_client.config.debugging
755
+ @api_client.config.logger.debug "Calling API: DefaultApi.stickers_search_get ..."
756
+ end
757
+ # verify the required parameter 'api_key' is set
758
+ fail ArgumentError, "Missing the required parameter 'api_key' when calling DefaultApi.stickers_search_get" if api_key.nil?
759
+ # verify the required parameter 'q' is set
760
+ fail ArgumentError, "Missing the required parameter 'q' when calling DefaultApi.stickers_search_get" if q.nil?
761
+ if !opts[:'limit'].nil? && opts[:'limit'] > 100
762
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.stickers_search_get, must be smaller than or equal to 100.'
763
+ end
764
+
765
+ if !opts[:'limit'].nil? && opts[:'limit'] < 1
766
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.stickers_search_get, must be greater than or equal to 1.'
767
+ end
768
+
769
+ if !opts[:'offset'].nil? && opts[:'offset'] > 100
770
+ fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.stickers_search_get, must be smaller than or equal to 100.'
771
+ end
772
+
773
+ if !opts[:'offset'].nil? && opts[:'offset'] < 0
774
+ fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.stickers_search_get, must be greater than or equal to 0.'
775
+ end
776
+
777
+ if opts[:'fmt'] && !['json', 'html'].include?(opts[:'fmt'])
778
+ fail ArgumentError, 'invalid value for "fmt", must be one of json, html'
779
+ end
780
+ # resource path
781
+ local_var_path = "/stickers/search".sub('{format}','json')
782
+
783
+ # query parameters
784
+ query_params = {}
785
+ query_params[:'api_key'] = api_key
786
+ query_params[:'q'] = q
787
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
788
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
789
+ query_params[:'rating'] = opts[:'rating'] if !opts[:'rating'].nil?
790
+ query_params[:'lang'] = opts[:'lang'] if !opts[:'lang'].nil?
791
+ query_params[:'fmt'] = opts[:'fmt'] if !opts[:'fmt'].nil?
792
+
793
+ # header parameters
794
+ header_params = {}
795
+ # HTTP header 'Accept' (if needed)
796
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
797
+ # HTTP header 'Content-Type'
798
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
799
+
800
+ # form parameters
801
+ form_params = {}
802
+
803
+ # http body (model)
804
+ post_body = nil
805
+ auth_names = []
806
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
807
+ :header_params => header_params,
808
+ :query_params => query_params,
809
+ :form_params => form_params,
810
+ :body => post_body,
811
+ :auth_names => auth_names,
812
+ :return_type => 'InlineResponse200')
813
+ if @api_client.config.debugging
814
+ @api_client.config.logger.debug "API called: DefaultApi#stickers_search_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
815
+ end
816
+ return data, status_code, headers
817
+ end
818
+
819
+ # Sticker Translate Endpoint
820
+ # The translate API draws on search, but uses the Giphy `special sauce` to handle translating from one vocabulary to another. In this case, words and phrases to GIFs.
821
+ # @param api_key Giphy API Key.
822
+ # @param s Search term.
823
+ # @param [Hash] opts the optional parameters
824
+ # @return [InlineResponse2001]
825
+ def stickers_translate_get(api_key, s, opts = {})
826
+ data, _status_code, _headers = stickers_translate_get_with_http_info(api_key, s, opts)
827
+ return data
828
+ end
829
+
830
+ # Sticker Translate Endpoint
831
+ # The translate API draws on search, but uses the Giphy &#x60;special sauce&#x60; to handle translating from one vocabulary to another. In this case, words and phrases to GIFs.
832
+ # @param api_key Giphy API Key.
833
+ # @param s Search term.
834
+ # @param [Hash] opts the optional parameters
835
+ # @return [Array<(InlineResponse2001, Fixnum, Hash)>] InlineResponse2001 data, response status code and response headers
836
+ def stickers_translate_get_with_http_info(api_key, s, opts = {})
837
+ if @api_client.config.debugging
838
+ @api_client.config.logger.debug "Calling API: DefaultApi.stickers_translate_get ..."
839
+ end
840
+ # verify the required parameter 'api_key' is set
841
+ fail ArgumentError, "Missing the required parameter 'api_key' when calling DefaultApi.stickers_translate_get" if api_key.nil?
842
+ # verify the required parameter 's' is set
843
+ fail ArgumentError, "Missing the required parameter 's' when calling DefaultApi.stickers_translate_get" if s.nil?
844
+ # resource path
845
+ local_var_path = "/stickers/translate".sub('{format}','json')
846
+
847
+ # query parameters
848
+ query_params = {}
849
+ query_params[:'api_key'] = api_key
850
+ query_params[:'s'] = s
851
+
852
+ # header parameters
853
+ header_params = {}
854
+ # HTTP header 'Accept' (if needed)
855
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
856
+ # HTTP header 'Content-Type'
857
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
858
+
859
+ # form parameters
860
+ form_params = {}
861
+
862
+ # http body (model)
863
+ post_body = nil
864
+ auth_names = []
865
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
866
+ :header_params => header_params,
867
+ :query_params => query_params,
868
+ :form_params => form_params,
869
+ :body => post_body,
870
+ :auth_names => auth_names,
871
+ :return_type => 'InlineResponse2001')
872
+ if @api_client.config.debugging
873
+ @api_client.config.logger.debug "API called: DefaultApi#stickers_translate_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
874
+ end
875
+ return data, status_code, headers
876
+ end
877
+
878
+ # Trending Stickers Endpoint
879
+ # Fetch GIFs currently trending online. Hand curated by the GIPHY editorial team. The data returned mirrors the GIFs showcased on the <a href = \"http://www.giphy.com\">GIPHY homepage</a>. Returns 25 results by default.
880
+ # @param api_key Giphy API Key.
881
+ # @param [Hash] opts the optional parameters
882
+ # @option opts [Integer] :limit The maximum number of records to return. (default to 25)
883
+ # @option opts [String] :rating Filters results by specified rating.
884
+ # @option opts [String] :fmt Used to indicate the expected response format. Default is Json. (default to json)
885
+ # @return [InlineResponse200]
886
+ def stickers_trending_get(api_key, opts = {})
887
+ data, _status_code, _headers = stickers_trending_get_with_http_info(api_key, opts)
888
+ return data
889
+ end
890
+
891
+ # Trending Stickers Endpoint
892
+ # Fetch GIFs currently trending online. Hand curated by the GIPHY editorial team. The data returned mirrors the GIFs showcased on the &lt;a href &#x3D; \&quot;http://www.giphy.com\&quot;&gt;GIPHY homepage&lt;/a&gt;. Returns 25 results by default.
893
+ # @param api_key Giphy API Key.
894
+ # @param [Hash] opts the optional parameters
895
+ # @option opts [Integer] :limit The maximum number of records to return.
896
+ # @option opts [String] :rating Filters results by specified rating.
897
+ # @option opts [String] :fmt Used to indicate the expected response format. Default is Json.
898
+ # @return [Array<(InlineResponse200, Fixnum, Hash)>] InlineResponse200 data, response status code and response headers
899
+ def stickers_trending_get_with_http_info(api_key, opts = {})
900
+ if @api_client.config.debugging
901
+ @api_client.config.logger.debug "Calling API: DefaultApi.stickers_trending_get ..."
902
+ end
903
+ # verify the required parameter 'api_key' is set
904
+ fail ArgumentError, "Missing the required parameter 'api_key' when calling DefaultApi.stickers_trending_get" if api_key.nil?
905
+ if !opts[:'limit'].nil? && opts[:'limit'] > 100
906
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.stickers_trending_get, must be smaller than or equal to 100.'
907
+ end
908
+
909
+ if !opts[:'limit'].nil? && opts[:'limit'] < 1
910
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.stickers_trending_get, must be greater than or equal to 1.'
911
+ end
912
+
913
+ if opts[:'fmt'] && !['json', 'html'].include?(opts[:'fmt'])
914
+ fail ArgumentError, 'invalid value for "fmt", must be one of json, html'
915
+ end
916
+ # resource path
917
+ local_var_path = "/stickers/trending".sub('{format}','json')
918
+
919
+ # query parameters
920
+ query_params = {}
921
+ query_params[:'api_key'] = api_key
922
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
923
+ query_params[:'rating'] = opts[:'rating'] if !opts[:'rating'].nil?
924
+ query_params[:'fmt'] = opts[:'fmt'] if !opts[:'fmt'].nil?
925
+
926
+ # header parameters
927
+ header_params = {}
928
+ # HTTP header 'Accept' (if needed)
929
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
930
+ # HTTP header 'Content-Type'
931
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
932
+
933
+ # form parameters
934
+ form_params = {}
935
+
936
+ # http body (model)
937
+ post_body = nil
938
+ auth_names = []
939
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
940
+ :header_params => header_params,
941
+ :query_params => query_params,
942
+ :form_params => form_params,
943
+ :body => post_body,
944
+ :auth_names => auth_names,
945
+ :return_type => 'InlineResponse200')
946
+ if @api_client.config.debugging
947
+ @api_client.config.logger.debug "API called: DefaultApi#stickers_trending_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
948
+ end
949
+ return data, status_code, headers
950
+ end
951
+ end
952
+ end