wa_cloud_api 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +21 -0
- data/README.md +86 -16
- data/Rakefile +7 -1
- data/lib/wa_cloud_api/client.rb +17 -0
- data/lib/wa_cloud_api/configuration.rb +23 -0
- data/lib/wa_cloud_api/message/base.rb +24 -0
- data/lib/wa_cloud_api/message/client.rb +39 -0
- data/lib/wa_cloud_api/message/error.rb +18 -0
- data/lib/wa_cloud_api/message/location.rb +33 -0
- data/lib/wa_cloud_api/message/reaction.rb +32 -0
- data/lib/wa_cloud_api/message/response.rb +45 -0
- data/lib/wa_cloud_api/message/service.rb +24 -0
- data/lib/wa_cloud_api/message/text.rb +33 -0
- data/lib/wa_cloud_api/version.rb +1 -1
- data/lib/wa_cloud_api.rb +14 -2
- data/wa_cloud_api.gemspec +15 -14
- metadata +53 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84d622cdbb39eec1fe5984e5d6f747d5d471c771714f7d8883d5e36f021ed582
|
4
|
+
data.tar.gz: f70748309ebe1642c507f4e043c623123233f0353c960aae268807dfe1448508
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a321a7ea5599a9c69c1218abf5d66c68960290cba9d2c094598acd2811f4946f5603fc42fb97d2a479706bcc96e95b1511a602015d30b485a13e6c3a22d3419
|
7
|
+
data.tar.gz: 3c3e916a74fc2af0d3f0608390fb1ebe0fe87d5d9f985deb9fe2212ddcba7cc5fc356aedb62a550365f2e22f22746d151ebc34fb5b68d1ad00435e523a35dd59
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2024 RAJANA VENKATA SURYA TEJA
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
CHANGED
@@ -1,35 +1,105 @@
|
|
1
1
|
# WaCloudApi
|
2
2
|
|
3
|
-
|
3
|
+
WaCloudApi is a ruby gem that provides a convinient way to interact with Whatsapp Cloud API allowing developer to integrate Whatsapp messaging capabilities into Ruby / Rails applications.
|
4
4
|
|
5
|
-
|
5
|
+
# Installation
|
6
|
+
Install the gem and add to the application's Gemfile by executing:
|
6
7
|
|
7
|
-
|
8
|
+
```bash
|
9
|
+
$ bundle add wa_cloud_api
|
10
|
+
```
|
8
11
|
|
9
|
-
|
12
|
+
If bundler is not being used to manage dependencies, install the gem by executing:
|
10
13
|
|
11
|
-
|
14
|
+
```bash
|
15
|
+
$ gem install wa_cloud_api
|
16
|
+
```
|
12
17
|
|
13
|
-
|
18
|
+
# Usage
|
14
19
|
|
15
|
-
|
20
|
+
### Configuration
|
21
|
+
|
22
|
+
Before using the gem, you need to configure it with your WhatsApp Cloud API credentials. You can do this by using the following code:
|
23
|
+
|
24
|
+
```ruby
|
25
|
+
require 'wa_cloud_api'
|
26
|
+
|
27
|
+
WaCloudApi.configure do |config|
|
28
|
+
config.phone_number_id = 'your_phone_number_id'
|
29
|
+
config.token = 'your_token'
|
30
|
+
end
|
31
|
+
```
|
32
|
+
|
33
|
+
### Features
|
34
|
+
|
35
|
+
- Text Message
|
36
|
+
- Reaction
|
37
|
+
- Location
|
38
|
+
|
39
|
+
### Text Message
|
40
|
+
|
41
|
+
To send a text message to a phone number.
|
42
|
+
|
43
|
+
Parameters
|
16
44
|
|
17
|
-
|
45
|
+
1. `to`: (Required) The phone number of the recipient. It should be in international format
|
46
|
+
2. `body`: (Required) The actual text message you want to send
|
47
|
+
3. `preview_url`: (Optional) A boolean parameter whether a URL preview should be generated for the links in the message. By default it is set to false
|
18
48
|
|
19
|
-
|
49
|
+
```ruby
|
50
|
+
WaCloudApi::Message::Text.new(
|
51
|
+
to: 'recipient_phone_number ',
|
52
|
+
body: 'This is a test message',
|
53
|
+
).deliver
|
54
|
+
```
|
20
55
|
|
21
|
-
|
56
|
+
### Reaction
|
57
|
+
|
58
|
+
To send a reaction to a message
|
59
|
+
|
60
|
+
Parameters
|
61
|
+
|
62
|
+
1. `to`: (Required) The phone number of the recipient. It should be in international format
|
63
|
+
2. `message_id`: (required) The message id you want to react
|
64
|
+
3. `emoji`: (required) The emoji you want to react
|
65
|
+
|
66
|
+
```ruby
|
67
|
+
WaCloudApi::Message::Reaction.new(
|
68
|
+
to: 'recipient_phone_number',
|
69
|
+
message_id: 'whatsapp_message_id',
|
70
|
+
emoji: 'emoji'
|
71
|
+
).deliver
|
72
|
+
```
|
73
|
+
|
74
|
+
### Location
|
75
|
+
|
76
|
+
To send a location to a phone number
|
77
|
+
|
78
|
+
Parameters
|
79
|
+
|
80
|
+
1. `to`: (Required) The phone number of the recipient. It should be in international format
|
81
|
+
2. `longitude`: (Required) Longitude of the location
|
82
|
+
3. `latitude`: (Required) Latitude of the location
|
83
|
+
4. `name`: (Optional) Name of the location
|
84
|
+
5. `address`: (Optional) Address of the location
|
85
|
+
|
86
|
+
```ruby
|
87
|
+
WaCloudApi::Message::Location.new(
|
88
|
+
to: 'recipient_phone_number',
|
89
|
+
longitude: 'longitude',
|
90
|
+
latitude: 'latitude',
|
91
|
+
name: 'location_name',
|
92
|
+
address: 'location_address'
|
93
|
+
).deliver
|
94
|
+
```
|
22
95
|
|
23
96
|
## Development
|
24
97
|
|
25
98
|
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
26
99
|
|
27
|
-
To install this gem onto your local machine, run `bundle exec rake install`.
|
100
|
+
To install this gem onto your local machine, run `bundle exec rake install`.
|
28
101
|
|
29
|
-
## Contributing
|
30
|
-
|
31
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/wa_cloud_api. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/wa_cloud_api/blob/main/CODE_OF_CONDUCT.md).
|
32
102
|
|
33
|
-
##
|
103
|
+
## Contributing
|
34
104
|
|
35
|
-
|
105
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/rvs-teja/wa_cloud_api. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/rvs-teja/wa_cloud_api/blob/main/CODE_OF_CONDUCT.md).
|
data/Rakefile
CHANGED
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module WaCloudApi
|
4
|
+
class Client
|
5
|
+
def deliver(_params)
|
6
|
+
validate_configuration
|
7
|
+
end
|
8
|
+
|
9
|
+
private
|
10
|
+
|
11
|
+
def validate_configuration
|
12
|
+
raise ArgumentError, 'Configuration is not set' if WaCloudApi.configuration.nil?
|
13
|
+
|
14
|
+
WaCloudApi.configuration.valid?
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module WaCloudApi
|
4
|
+
class Configuration
|
5
|
+
attr_accessor :phone_number_id, :token
|
6
|
+
|
7
|
+
MANDATORY_ATTRIBUTES = %i[phone_number_id token].freeze
|
8
|
+
|
9
|
+
def initialize
|
10
|
+
@missing_params = []
|
11
|
+
end
|
12
|
+
|
13
|
+
def valid?
|
14
|
+
MANDATORY_ATTRIBUTES.each do |attribute|
|
15
|
+
@missing_params << attribute unless instance_variable_defined?("@#{attribute}")
|
16
|
+
end
|
17
|
+
|
18
|
+
raise ArgumentError, "#{@missing_params.join(', ')} are not set in configuration" unless @missing_params.empty?
|
19
|
+
|
20
|
+
true
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module WaCloudApi
|
2
|
+
module Message
|
3
|
+
class Base
|
4
|
+
attr_accessor :messaging_product, :recipient_type, :to, :type
|
5
|
+
|
6
|
+
def initialize(to:, type:)
|
7
|
+
@messaging_product = 'whatsapp'
|
8
|
+
@recipient_type = 'individual'
|
9
|
+
@to = to
|
10
|
+
@type = type
|
11
|
+
end
|
12
|
+
|
13
|
+
def deliver
|
14
|
+
Service.deliver(params: request_params)
|
15
|
+
end
|
16
|
+
|
17
|
+
private
|
18
|
+
|
19
|
+
def request_params
|
20
|
+
raise NotImplementedError, 'Should be implemented by child class'
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'faraday'
|
4
|
+
require 'json'
|
5
|
+
|
6
|
+
require_relative 'response'
|
7
|
+
require_relative '../client'
|
8
|
+
|
9
|
+
module WaCloudApi
|
10
|
+
module Message
|
11
|
+
class Client < WaCloudApi::Client
|
12
|
+
def self.deliver(params:)
|
13
|
+
response = new.deliver(params)
|
14
|
+
Response.new(response.status, response.body)
|
15
|
+
end
|
16
|
+
|
17
|
+
def deliver(params)
|
18
|
+
super
|
19
|
+
conn.post do |req|
|
20
|
+
req.body = params.to_json
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
private
|
25
|
+
|
26
|
+
def url
|
27
|
+
"https://graph.facebook.com/v18.0/#{WaCloudApi.configuration.phone_number_id}/messages"
|
28
|
+
end
|
29
|
+
|
30
|
+
def conn
|
31
|
+
@conn ||= Faraday.new(url: url) do |faraday|
|
32
|
+
faraday.adapter Faraday.default_adapter
|
33
|
+
faraday.headers['Authorization'] = "Bearer #{WaCloudApi.configuration.token}"
|
34
|
+
faraday.headers['Content-Type'] = 'application/json'
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module WaCloudApi
|
4
|
+
module Message
|
5
|
+
Error = Struct.new(:message, :type, :code, :fbtrace_id, :error_subcode, :error_data, keyword_init: true) do
|
6
|
+
|
7
|
+
def handle_error
|
8
|
+
raise WaCloudApi::Error, error_message
|
9
|
+
end
|
10
|
+
|
11
|
+
private
|
12
|
+
|
13
|
+
def error_message
|
14
|
+
error_data&.dig(:details) || message
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
require_relative 'base'
|
2
|
+
|
3
|
+
module WaCloudApi
|
4
|
+
module Message
|
5
|
+
class Location < Base
|
6
|
+
attr_accessor :longitude, :latitude, :name, :address
|
7
|
+
|
8
|
+
def initialize(to:, longitude:, latitude:, name: nil, address: nil)
|
9
|
+
@longitude = longitude
|
10
|
+
@latitude = latitude
|
11
|
+
@name = name
|
12
|
+
@address = address
|
13
|
+
super(to: to, type: 'location')
|
14
|
+
end
|
15
|
+
|
16
|
+
private
|
17
|
+
|
18
|
+
def request_params
|
19
|
+
{
|
20
|
+
messaging_product: messaging_product,
|
21
|
+
to: to,
|
22
|
+
type: type,
|
23
|
+
location: {
|
24
|
+
longitude: longitude,
|
25
|
+
latitude: latitude,
|
26
|
+
name: name,
|
27
|
+
address: address
|
28
|
+
}
|
29
|
+
}
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
require 'json'
|
2
|
+
|
3
|
+
require_relative 'base'
|
4
|
+
|
5
|
+
module WaCloudApi
|
6
|
+
module Message
|
7
|
+
class Reaction < Base
|
8
|
+
attr_accessor :message_id, :emoji
|
9
|
+
|
10
|
+
def initialize(to:, message_id:, emoji:)
|
11
|
+
@message_id = message_id
|
12
|
+
@emoji = JSON.parse("\"#{emoji}\"").encode('utf-8')
|
13
|
+
super(to: to, type: 'reaction')
|
14
|
+
end
|
15
|
+
|
16
|
+
private
|
17
|
+
|
18
|
+
def request_params
|
19
|
+
{
|
20
|
+
messaging_product: messaging_product,
|
21
|
+
recipient_type: recipient_type,
|
22
|
+
to: to,
|
23
|
+
type: type,
|
24
|
+
"reaction": {
|
25
|
+
"message_id": message_id,
|
26
|
+
"emoji": emoji
|
27
|
+
}
|
28
|
+
}
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'json'
|
4
|
+
|
5
|
+
module WaCloudApi
|
6
|
+
module Message
|
7
|
+
class Response
|
8
|
+
Contact = Struct.new(:input, :wa_id, keyword_init: true)
|
9
|
+
Message = Struct.new(:id, keyword_init: true)
|
10
|
+
|
11
|
+
attr_accessor :status, :data
|
12
|
+
|
13
|
+
def initialize(status, response)
|
14
|
+
@status = status.to_i
|
15
|
+
@data = convert_keys_to_symbols(JSON.parse(response))
|
16
|
+
end
|
17
|
+
|
18
|
+
def ok?
|
19
|
+
status == 200
|
20
|
+
end
|
21
|
+
|
22
|
+
def contacts
|
23
|
+
data[:contacts]&.map(&Contact.method(:new)) || []
|
24
|
+
end
|
25
|
+
|
26
|
+
def messages
|
27
|
+
data[:messages]&.map(&Message.method(:new)) || []
|
28
|
+
end
|
29
|
+
|
30
|
+
private
|
31
|
+
|
32
|
+
def convert_keys_to_symbols(obj)
|
33
|
+
case obj
|
34
|
+
when Hash
|
35
|
+
obj.transform_keys(&:to_sym)
|
36
|
+
.transform_values { |value| convert_keys_to_symbols(value) }
|
37
|
+
when Array
|
38
|
+
obj.map { |item| convert_keys_to_symbols(item) }
|
39
|
+
else
|
40
|
+
obj
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'client'
|
4
|
+
require_relative 'error'
|
5
|
+
|
6
|
+
module WaCloudApi
|
7
|
+
module Message
|
8
|
+
class Service
|
9
|
+
class << self
|
10
|
+
def deliver(params:)
|
11
|
+
response = Client.deliver(params: params)
|
12
|
+
handle_failure(response) unless response.ok?
|
13
|
+
response
|
14
|
+
end
|
15
|
+
|
16
|
+
private
|
17
|
+
|
18
|
+
def handle_failure(response)
|
19
|
+
WaCloudApi::Message::Error.new(response.data[:error]).handle_error
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'service'
|
4
|
+
require_relative 'base'
|
5
|
+
|
6
|
+
module WaCloudApi
|
7
|
+
module Message
|
8
|
+
class Text < Base
|
9
|
+
attr_accessor :preview_url, :body
|
10
|
+
|
11
|
+
def initialize(to:, body:, preview_url: false)
|
12
|
+
@body = body
|
13
|
+
@preview_url = preview_url || false
|
14
|
+
super(to: to, type: 'text')
|
15
|
+
end
|
16
|
+
|
17
|
+
private
|
18
|
+
|
19
|
+
def request_params
|
20
|
+
{
|
21
|
+
messaging_product: messaging_product,
|
22
|
+
recipient_type: recipient_type,
|
23
|
+
to: to,
|
24
|
+
type: type,
|
25
|
+
text: {
|
26
|
+
preview_url: preview_url,
|
27
|
+
body: body
|
28
|
+
}
|
29
|
+
}
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
data/lib/wa_cloud_api/version.rb
CHANGED
data/lib/wa_cloud_api.rb
CHANGED
@@ -1,8 +1,20 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative
|
3
|
+
require_relative 'wa_cloud_api/version'
|
4
|
+
require_relative 'wa_cloud_api/message/text'
|
5
|
+
require_relative 'wa_cloud_api/message/reaction'
|
6
|
+
require_relative 'wa_cloud_api/message/location'
|
7
|
+
require_relative 'wa_cloud_api/configuration'
|
4
8
|
|
5
9
|
module WaCloudApi
|
6
10
|
class Error < StandardError; end
|
7
|
-
|
11
|
+
|
12
|
+
class << self
|
13
|
+
attr_accessor :configuration
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.configure
|
17
|
+
self.configuration ||= Configuration.new
|
18
|
+
yield(configuration)
|
19
|
+
end
|
8
20
|
end
|
data/wa_cloud_api.gemspec
CHANGED
@@ -1,23 +1,23 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative
|
3
|
+
require_relative 'lib/wa_cloud_api/version'
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
|
-
spec.name =
|
6
|
+
spec.name = 'wa_cloud_api'
|
7
7
|
spec.version = WaCloudApi::VERSION
|
8
|
-
spec.authors = [
|
9
|
-
spec.email = [
|
8
|
+
spec.authors = ['teja-rvs']
|
9
|
+
spec.email = ['tejaprogramer@gmail.com']
|
10
10
|
|
11
|
-
spec.summary =
|
12
|
-
spec.description =
|
13
|
-
spec.homepage =
|
14
|
-
spec.required_ruby_version =
|
11
|
+
spec.summary = 'Ruby SDK for whatsapp cloud api'
|
12
|
+
spec.description = 'Ruby SDK for whatsapp cloud api'
|
13
|
+
spec.homepage = 'https://github.com/rvs-teja/wa_cloud_api'
|
14
|
+
spec.required_ruby_version = '>= 2.6.0'
|
15
15
|
|
16
16
|
# spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"
|
17
17
|
|
18
|
-
spec.metadata[
|
19
|
-
spec.metadata[
|
20
|
-
spec.metadata[
|
18
|
+
spec.metadata['homepage_uri'] = spec.homepage
|
19
|
+
spec.metadata['source_code_uri'] = 'https://github.com/rvs-teja/wa_cloud_api'
|
20
|
+
spec.metadata['changelog_uri'] = 'https://github.com/rvs-teja/wa_cloud_api/blob/main/CHANGELOG.md'
|
21
21
|
|
22
22
|
# Specify which files should be added to the gem when it is released.
|
23
23
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
@@ -27,12 +27,13 @@ Gem::Specification.new do |spec|
|
|
27
27
|
f.start_with?(*%w[bin/ test/ spec/ features/ .git appveyor Gemfile])
|
28
28
|
end
|
29
29
|
end
|
30
|
-
spec.bindir =
|
30
|
+
spec.bindir = 'exe'
|
31
31
|
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
32
|
-
spec.require_paths = [
|
32
|
+
spec.require_paths = ['lib']
|
33
33
|
|
34
34
|
# Uncomment to register a new dependency of your gem
|
35
|
-
|
35
|
+
spec.add_dependency 'faraday', '~> 2.9'
|
36
|
+
spec.add_dependency 'rubocop', '~> 1.60', '>= 1.60.1'
|
36
37
|
|
37
38
|
# For more information and examples about making a new gem, check out our
|
38
39
|
# guide at: https://bundler.io/guides/creating_gem.html
|
metadata
CHANGED
@@ -1,27 +1,72 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wa_cloud_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- rvs
|
7
|
+
- teja-rvs
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
12
|
-
dependencies:
|
13
|
-
|
11
|
+
date: 2024-03-23 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: faraday
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.9'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2.9'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rubocop
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.60'
|
34
|
+
- - ">="
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: 1.60.1
|
37
|
+
type: :runtime
|
38
|
+
prerelease: false
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - "~>"
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '1.60'
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 1.60.1
|
47
|
+
description: Ruby SDK for whatsapp cloud api
|
14
48
|
email:
|
15
|
-
-
|
49
|
+
- tejaprogramer@gmail.com
|
16
50
|
executables: []
|
17
51
|
extensions: []
|
18
52
|
extra_rdoc_files: []
|
19
53
|
files:
|
20
54
|
- CHANGELOG.md
|
21
55
|
- CODE_OF_CONDUCT.md
|
56
|
+
- LICENSE
|
22
57
|
- README.md
|
23
58
|
- Rakefile
|
24
59
|
- lib/wa_cloud_api.rb
|
60
|
+
- lib/wa_cloud_api/client.rb
|
61
|
+
- lib/wa_cloud_api/configuration.rb
|
62
|
+
- lib/wa_cloud_api/message/base.rb
|
63
|
+
- lib/wa_cloud_api/message/client.rb
|
64
|
+
- lib/wa_cloud_api/message/error.rb
|
65
|
+
- lib/wa_cloud_api/message/location.rb
|
66
|
+
- lib/wa_cloud_api/message/reaction.rb
|
67
|
+
- lib/wa_cloud_api/message/response.rb
|
68
|
+
- lib/wa_cloud_api/message/service.rb
|
69
|
+
- lib/wa_cloud_api/message/text.rb
|
25
70
|
- lib/wa_cloud_api/version.rb
|
26
71
|
- sig/wa_cloud_api.rbs
|
27
72
|
- wa_cloud_api.gemspec
|
@@ -30,7 +75,7 @@ licenses: []
|
|
30
75
|
metadata:
|
31
76
|
homepage_uri: https://github.com/rvs-teja/wa_cloud_api
|
32
77
|
source_code_uri: https://github.com/rvs-teja/wa_cloud_api
|
33
|
-
changelog_uri: https://github.com/rvs-teja/wa_cloud_api/CHANGELOG.md
|
78
|
+
changelog_uri: https://github.com/rvs-teja/wa_cloud_api/blob/main/CHANGELOG.md
|
34
79
|
post_install_message:
|
35
80
|
rdoc_options: []
|
36
81
|
require_paths:
|
@@ -49,5 +94,5 @@ requirements: []
|
|
49
94
|
rubygems_version: 3.3.7
|
50
95
|
signing_key:
|
51
96
|
specification_version: 4
|
52
|
-
summary: Ruby SDK for
|
97
|
+
summary: Ruby SDK for whatsapp cloud api
|
53
98
|
test_files: []
|