whatsapp-ruby-sdk 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +28 -0
  3. data/README.md +85 -0
  4. data/lib/whats_app_cloud_api/api_helper.rb +277 -0
  5. data/lib/whats_app_cloud_api/client.rb +68 -0
  6. data/lib/whats_app_cloud_api/configuration.rb +132 -0
  7. data/lib/whats_app_cloud_api/controllers/base_controller.rb +52 -0
  8. data/lib/whats_app_cloud_api/controllers/business_profiles_controller.rb +94 -0
  9. data/lib/whats_app_cloud_api/controllers/media_controller.rb +142 -0
  10. data/lib/whats_app_cloud_api/controllers/messages_controller.rb +51 -0
  11. data/lib/whats_app_cloud_api/controllers/phone_numbers_controller.rb +141 -0
  12. data/lib/whats_app_cloud_api/controllers/registration_controller.rb +91 -0
  13. data/lib/whats_app_cloud_api/controllers/two_step_verification_controller.rb +57 -0
  14. data/lib/whats_app_cloud_api/exceptions/api_exception.rb +20 -0
  15. data/lib/whats_app_cloud_api/http/auth/o_auth2.rb +17 -0
  16. data/lib/whats_app_cloud_api/http/faraday_client.rb +97 -0
  17. data/lib/whats_app_cloud_api/http/http_call_back.rb +24 -0
  18. data/lib/whats_app_cloud_api/http/http_client.rb +123 -0
  19. data/lib/whats_app_cloud_api/http/http_method_enum.rb +13 -0
  20. data/lib/whats_app_cloud_api/http/http_request.rb +54 -0
  21. data/lib/whats_app_cloud_api/http/http_response.rb +29 -0
  22. data/lib/whats_app_cloud_api/models/action.rb +91 -0
  23. data/lib/whats_app_cloud_api/models/address.rb +110 -0
  24. data/lib/whats_app_cloud_api/models/audio.rb +61 -0
  25. data/lib/whats_app_cloud_api/models/base_model.rb +58 -0
  26. data/lib/whats_app_cloud_api/models/body.rb +49 -0
  27. data/lib/whats_app_cloud_api/models/business_profile.rb +123 -0
  28. data/lib/whats_app_cloud_api/models/button.rb +71 -0
  29. data/lib/whats_app_cloud_api/models/button_parameter.rb +72 -0
  30. data/lib/whats_app_cloud_api/models/button_parameter_type_enum.rb +17 -0
  31. data/lib/whats_app_cloud_api/models/component.rb +83 -0
  32. data/lib/whats_app_cloud_api/models/component_type_enum.rb +20 -0
  33. data/lib/whats_app_cloud_api/models/contact.rb +145 -0
  34. data/lib/whats_app_cloud_api/models/content_type_enum.rb +14 -0
  35. data/lib/whats_app_cloud_api/models/currency.rb +67 -0
  36. data/lib/whats_app_cloud_api/models/date_time_object.rb +128 -0
  37. data/lib/whats_app_cloud_api/models/document.rb +81 -0
  38. data/lib/whats_app_cloud_api/models/email_object.rb +60 -0
  39. data/lib/whats_app_cloud_api/models/footer.rb +49 -0
  40. data/lib/whats_app_cloud_api/models/get_business_profile_id_response.rb +57 -0
  41. data/lib/whats_app_cloud_api/models/get_phone_number_by_id_response.rb +78 -0
  42. data/lib/whats_app_cloud_api/models/header.rb +93 -0
  43. data/lib/whats_app_cloud_api/models/header_type_enum.rb +23 -0
  44. data/lib/whats_app_cloud_api/models/image.rb +71 -0
  45. data/lib/whats_app_cloud_api/models/interactive.rb +87 -0
  46. data/lib/whats_app_cloud_api/models/interactive_type_enum.rb +17 -0
  47. data/lib/whats_app_cloud_api/models/language.rb +60 -0
  48. data/lib/whats_app_cloud_api/models/location.rb +78 -0
  49. data/lib/whats_app_cloud_api/models/message.rb +194 -0
  50. data/lib/whats_app_cloud_api/models/message_type_enum.rb +41 -0
  51. data/lib/whats_app_cloud_api/models/name.rb +100 -0
  52. data/lib/whats_app_cloud_api/models/org.rb +70 -0
  53. data/lib/whats_app_cloud_api/models/parameter.rb +113 -0
  54. data/lib/whats_app_cloud_api/models/parameter_type_enum.rb +29 -0
  55. data/lib/whats_app_cloud_api/models/personal_information_type_enum.rb +17 -0
  56. data/lib/whats_app_cloud_api/models/phone_object.rb +70 -0
  57. data/lib/whats_app_cloud_api/models/phone_type_enum.rb +26 -0
  58. data/lib/whats_app_cloud_api/models/quality_rating_enum.rb +25 -0
  59. data/lib/whats_app_cloud_api/models/register_phone_request.rb +58 -0
  60. data/lib/whats_app_cloud_api/models/request_verification_code_method_enum.rb +17 -0
  61. data/lib/whats_app_cloud_api/models/request_verification_code_request.rb +57 -0
  62. data/lib/whats_app_cloud_api/models/response_contact.rb +57 -0
  63. data/lib/whats_app_cloud_api/models/response_message.rb +48 -0
  64. data/lib/whats_app_cloud_api/models/retrieve_media_url_response.rb +94 -0
  65. data/lib/whats_app_cloud_api/models/row.rb +68 -0
  66. data/lib/whats_app_cloud_api/models/section.rb +72 -0
  67. data/lib/whats_app_cloud_api/models/send_message_response.rb +85 -0
  68. data/lib/whats_app_cloud_api/models/set_two_step_verification_code_request.rb +48 -0
  69. data/lib/whats_app_cloud_api/models/sticker.rb +61 -0
  70. data/lib/whats_app_cloud_api/models/sub_type_enum.rb +20 -0
  71. data/lib/whats_app_cloud_api/models/success_response.rb +48 -0
  72. data/lib/whats_app_cloud_api/models/template.rb +78 -0
  73. data/lib/whats_app_cloud_api/models/text.rb +72 -0
  74. data/lib/whats_app_cloud_api/models/update_business_profile_request.rb +116 -0
  75. data/lib/whats_app_cloud_api/models/upload_media.rb +48 -0
  76. data/lib/whats_app_cloud_api/models/upload_media_request.rb +80 -0
  77. data/lib/whats_app_cloud_api/models/url_object.rb +60 -0
  78. data/lib/whats_app_cloud_api/models/verify_code_request.rb +48 -0
  79. data/lib/whats_app_cloud_api/models/vertical_enum.rb +68 -0
  80. data/lib/whats_app_cloud_api/models/video.rb +61 -0
  81. data/lib/whats_app_cloud_api/utilities/date_time_helper.rb +156 -0
  82. data/lib/whats_app_cloud_api/utilities/file_wrapper.rb +16 -0
  83. data/lib/whats_app_cloud_api.rb +104 -0
  84. metadata +266 -0
metadata ADDED
@@ -0,0 +1,266 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: whatsapp-ruby-sdk
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - APIMatic SDK Generator
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2022-06-17 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: logging
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.3'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: faraday
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.0'
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: 2.0.1
37
+ type: :runtime
38
+ prerelease: false
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - "~>"
42
+ - !ruby/object:Gem::Version
43
+ version: '2.0'
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: 2.0.1
47
+ - !ruby/object:Gem::Dependency
48
+ name: faraday-follow_redirects
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '0.2'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '0.2'
61
+ - !ruby/object:Gem::Dependency
62
+ name: faraday-multipart
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '1.0'
68
+ type: :runtime
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: '1.0'
75
+ - !ruby/object:Gem::Dependency
76
+ name: faraday-gzip
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: '0.1'
82
+ type: :runtime
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - "~>"
87
+ - !ruby/object:Gem::Version
88
+ version: '0.1'
89
+ - !ruby/object:Gem::Dependency
90
+ name: faraday-retry
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "~>"
94
+ - !ruby/object:Gem::Version
95
+ version: '1.0'
96
+ type: :runtime
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - "~>"
101
+ - !ruby/object:Gem::Version
102
+ version: '1.0'
103
+ - !ruby/object:Gem::Dependency
104
+ name: certifi
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - "~>"
108
+ - !ruby/object:Gem::Version
109
+ version: '2018.1'
110
+ - - ">="
111
+ - !ruby/object:Gem::Version
112
+ version: 2018.01.18
113
+ type: :runtime
114
+ prerelease: false
115
+ version_requirements: !ruby/object:Gem::Requirement
116
+ requirements:
117
+ - - "~>"
118
+ - !ruby/object:Gem::Version
119
+ version: '2018.1'
120
+ - - ">="
121
+ - !ruby/object:Gem::Version
122
+ version: 2018.01.18
123
+ - !ruby/object:Gem::Dependency
124
+ name: faraday-http-cache
125
+ requirement: !ruby/object:Gem::Requirement
126
+ requirements:
127
+ - - "~>"
128
+ - !ruby/object:Gem::Version
129
+ version: '2.2'
130
+ type: :runtime
131
+ prerelease: false
132
+ version_requirements: !ruby/object:Gem::Requirement
133
+ requirements:
134
+ - - "~>"
135
+ - !ruby/object:Gem::Version
136
+ version: '2.2'
137
+ description: 'Welcome to the WhatsApp API from Meta. Individual developers and existing
138
+ Business Service Providers (BSPs) can now send and receive messages via the WhatsApp
139
+ API using a cloud-hosted version of the WhatsApp Business API. Compared to the previous
140
+ solutions, the cloud-based WhatsApp API is simpler to use and is a more cost-effective
141
+ way for businesses to use WhatsApp. Please keep in mind the following configurations: |
142
+ Name | Description | | --- | --- | | Version | Latest [Graph API version](https://developers.facebook.com/docs/graph-api/).
143
+ For example: v13.0 | | User-Access-Token | Your user access token after signing
144
+ up at [developers.facebook.com](https://developers.facebook.com). | | WABA-ID |
145
+ Your WhatsApp Business Account (WABA) ID. | | Phone-Number-ID | ID for the phone
146
+ number connected to the WhatsApp Business API. You can get this with a [Get Phone
147
+ Number ID request](3184f675-d289-46f1-88e5-e2b11549c418). | | Business-ID | Your
148
+ Business'' ID. Once you have your Phone-Number-ID, make a [Get Business Profile
149
+ request](#99fd3743-46cf-46c4-95b5-431c6a4eb0b0) to get your Business'' ID. | | Recipient-Phone-Number
150
+ | Phone number that you want to send a WhatsApp message to. | | Media-ID | ID for
151
+ the media to [send a media message](#0a632754-3788-43bf-b785-ac6a73423d5a) or [media
152
+ template message](#439c926a-8a6c-4972-ab2c-d99297716da9) to your customers. | |
153
+ Media-URL | URL for the media to [download media content](#cbe5ece3-246c-48f3-b338-074187dfef66).
154
+ |'
155
+ email: support@apimatic.io
156
+ executables: []
157
+ extensions: []
158
+ extra_rdoc_files: []
159
+ files:
160
+ - LICENSE
161
+ - README.md
162
+ - lib/whats_app_cloud_api.rb
163
+ - lib/whats_app_cloud_api/api_helper.rb
164
+ - lib/whats_app_cloud_api/client.rb
165
+ - lib/whats_app_cloud_api/configuration.rb
166
+ - lib/whats_app_cloud_api/controllers/base_controller.rb
167
+ - lib/whats_app_cloud_api/controllers/business_profiles_controller.rb
168
+ - lib/whats_app_cloud_api/controllers/media_controller.rb
169
+ - lib/whats_app_cloud_api/controllers/messages_controller.rb
170
+ - lib/whats_app_cloud_api/controllers/phone_numbers_controller.rb
171
+ - lib/whats_app_cloud_api/controllers/registration_controller.rb
172
+ - lib/whats_app_cloud_api/controllers/two_step_verification_controller.rb
173
+ - lib/whats_app_cloud_api/exceptions/api_exception.rb
174
+ - lib/whats_app_cloud_api/http/auth/o_auth2.rb
175
+ - lib/whats_app_cloud_api/http/faraday_client.rb
176
+ - lib/whats_app_cloud_api/http/http_call_back.rb
177
+ - lib/whats_app_cloud_api/http/http_client.rb
178
+ - lib/whats_app_cloud_api/http/http_method_enum.rb
179
+ - lib/whats_app_cloud_api/http/http_request.rb
180
+ - lib/whats_app_cloud_api/http/http_response.rb
181
+ - lib/whats_app_cloud_api/models/action.rb
182
+ - lib/whats_app_cloud_api/models/address.rb
183
+ - lib/whats_app_cloud_api/models/audio.rb
184
+ - lib/whats_app_cloud_api/models/base_model.rb
185
+ - lib/whats_app_cloud_api/models/body.rb
186
+ - lib/whats_app_cloud_api/models/business_profile.rb
187
+ - lib/whats_app_cloud_api/models/button.rb
188
+ - lib/whats_app_cloud_api/models/button_parameter.rb
189
+ - lib/whats_app_cloud_api/models/button_parameter_type_enum.rb
190
+ - lib/whats_app_cloud_api/models/component.rb
191
+ - lib/whats_app_cloud_api/models/component_type_enum.rb
192
+ - lib/whats_app_cloud_api/models/contact.rb
193
+ - lib/whats_app_cloud_api/models/content_type_enum.rb
194
+ - lib/whats_app_cloud_api/models/currency.rb
195
+ - lib/whats_app_cloud_api/models/date_time_object.rb
196
+ - lib/whats_app_cloud_api/models/document.rb
197
+ - lib/whats_app_cloud_api/models/email_object.rb
198
+ - lib/whats_app_cloud_api/models/footer.rb
199
+ - lib/whats_app_cloud_api/models/get_business_profile_id_response.rb
200
+ - lib/whats_app_cloud_api/models/get_phone_number_by_id_response.rb
201
+ - lib/whats_app_cloud_api/models/header.rb
202
+ - lib/whats_app_cloud_api/models/header_type_enum.rb
203
+ - lib/whats_app_cloud_api/models/image.rb
204
+ - lib/whats_app_cloud_api/models/interactive.rb
205
+ - lib/whats_app_cloud_api/models/interactive_type_enum.rb
206
+ - lib/whats_app_cloud_api/models/language.rb
207
+ - lib/whats_app_cloud_api/models/location.rb
208
+ - lib/whats_app_cloud_api/models/message.rb
209
+ - lib/whats_app_cloud_api/models/message_type_enum.rb
210
+ - lib/whats_app_cloud_api/models/name.rb
211
+ - lib/whats_app_cloud_api/models/org.rb
212
+ - lib/whats_app_cloud_api/models/parameter.rb
213
+ - lib/whats_app_cloud_api/models/parameter_type_enum.rb
214
+ - lib/whats_app_cloud_api/models/personal_information_type_enum.rb
215
+ - lib/whats_app_cloud_api/models/phone_object.rb
216
+ - lib/whats_app_cloud_api/models/phone_type_enum.rb
217
+ - lib/whats_app_cloud_api/models/quality_rating_enum.rb
218
+ - lib/whats_app_cloud_api/models/register_phone_request.rb
219
+ - lib/whats_app_cloud_api/models/request_verification_code_method_enum.rb
220
+ - lib/whats_app_cloud_api/models/request_verification_code_request.rb
221
+ - lib/whats_app_cloud_api/models/response_contact.rb
222
+ - lib/whats_app_cloud_api/models/response_message.rb
223
+ - lib/whats_app_cloud_api/models/retrieve_media_url_response.rb
224
+ - lib/whats_app_cloud_api/models/row.rb
225
+ - lib/whats_app_cloud_api/models/section.rb
226
+ - lib/whats_app_cloud_api/models/send_message_response.rb
227
+ - lib/whats_app_cloud_api/models/set_two_step_verification_code_request.rb
228
+ - lib/whats_app_cloud_api/models/sticker.rb
229
+ - lib/whats_app_cloud_api/models/sub_type_enum.rb
230
+ - lib/whats_app_cloud_api/models/success_response.rb
231
+ - lib/whats_app_cloud_api/models/template.rb
232
+ - lib/whats_app_cloud_api/models/text.rb
233
+ - lib/whats_app_cloud_api/models/update_business_profile_request.rb
234
+ - lib/whats_app_cloud_api/models/upload_media.rb
235
+ - lib/whats_app_cloud_api/models/upload_media_request.rb
236
+ - lib/whats_app_cloud_api/models/url_object.rb
237
+ - lib/whats_app_cloud_api/models/verify_code_request.rb
238
+ - lib/whats_app_cloud_api/models/vertical_enum.rb
239
+ - lib/whats_app_cloud_api/models/video.rb
240
+ - lib/whats_app_cloud_api/utilities/date_time_helper.rb
241
+ - lib/whats_app_cloud_api/utilities/file_wrapper.rb
242
+ homepage: https://apimatic.io
243
+ licenses:
244
+ - MIT
245
+ metadata: {}
246
+ post_install_message:
247
+ rdoc_options: []
248
+ require_paths:
249
+ - lib
250
+ required_ruby_version: !ruby/object:Gem::Requirement
251
+ requirements:
252
+ - - ">="
253
+ - !ruby/object:Gem::Version
254
+ version: '2.6'
255
+ required_rubygems_version: !ruby/object:Gem::Requirement
256
+ requirements:
257
+ - - ">="
258
+ - !ruby/object:Gem::Version
259
+ version: '0'
260
+ requirements: []
261
+ rubyforge_project:
262
+ rubygems_version: 2.7.6
263
+ signing_key:
264
+ specification_version: 4
265
+ summary: whats_app_cloud_api
266
+ test_files: []