direct7 0.0.13 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f8c128191bac6a5abb2d2dfed05e504a36df201d394d44fb05dde354bc4e3e16
4
- data.tar.gz: 0bd62c9782fa39cceebc1110bd68b68dc000d37e0548c11788fc882c48b2c0b0
3
+ metadata.gz: bee476d4776b5658c0cccabd7dd102ea3fc5956adc3d50119ae3bbeaab617769
4
+ data.tar.gz: d11ff34f0be945a802476d210c024caaac57448f991430ca2bdee9b7c501e155
5
5
  SHA512:
6
- metadata.gz: 34016259c47fa36daf4e3829897fb7a3a5cb38f1e4f82222d02d1eec093d36db4e10ec038276dfe238132b08bd62bb241eaf99def9fa020cebd038d9392f7f39
7
- data.tar.gz: 75564fd228ff33d129220c29961e20fc9e963d760c918b0331fc002218fc66122ae1172221238c0cbdd8f98f09f0e3c7eb395d6dd35bcdb0efc8af4beccde941
6
+ metadata.gz: bc867e763b692dfd5bd5e75a59cd5bad98ff36f811dd9ca08ed8e1bcc8cbabcbbfae59809c77c6d99d7b77528381801d124f3044f9aff4dd92be049533ab09c7
7
+ data.tar.gz: 258dcc9a516516302352e372f60835dc365e3819fa86517c739b5659fceb7676db6a19b9597009bf046a7a82d00a86737d973ed29a8b7f63d6245c140955900e
data/README.md CHANGED
@@ -8,7 +8,7 @@ The SDK is available on RubyGems and can be installed using two methods:
8
8
  Add this line to your application's Gemfile:
9
9
 
10
10
  ```bash
11
- gem 'direct7', '~> 0.0.13'
11
+ gem 'direct7', '~> 0.0.14'
12
12
  ```
13
13
 
14
14
  And then execute:
@@ -171,7 +171,7 @@ require 'direct7'
171
171
 
172
172
  client = Direct7::Client.new('Your API token')
173
173
 
174
- client.whatsapp.send_whatsapp_freeform_message(originator="91906152XXXX", recipient="91906152XXXX", message_type="CONTACTS", first_name="Amal", last_name="Anu", display_name="Amal Anu", phone="91906152XXXX", email = "amal@gmail.com")
174
+ client.whatsapp.send_whatsapp_freeform_message(originator="91906152XXXX", recipient="91906152XXXX", message_type="CONTACTS", first_name="Amal", last_name="Anu", formatted_name="Amal Anu", phones=["91906152XXXX", "91906152XXXX"], emails = ["amal@gmail.com", "amal@gmail.com"])
175
175
  ```
176
176
 
177
177
  ### Send Whatsapp Templated Message.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.13
1
+ 0.0.14
Binary file
data/direct7.gemspec CHANGED
@@ -4,7 +4,7 @@ require "direct7/version"
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "direct7"
7
- spec.version = "0.0.13"
7
+ spec.version = "0.0.14"
8
8
  spec.authors = ["Direct7 Networks"]
9
9
  spec.email = ["support@d7networks.com"]
10
10
  spec.summary = "Ruby SDK for Direct7 Platform REST API"
data/test/test.rb CHANGED
@@ -5,7 +5,7 @@ require_relative '../lib/direct7/client'
5
5
 
6
6
  class TestSERVICES < Test::Unit::TestCase
7
7
  def setup
8
- @client = Direct7::Client.new('Your API Token')
8
+ @client = Direct7::Client.new('API TOKEN')
9
9
  end
10
10
 
11
11
  def test_send_message
@@ -55,9 +55,12 @@ class TestSERVICES < Test::Unit::TestCase
55
55
  media_url="https://d7networks.com/static/resources/css/img/favicon.d27f70e6ebd0.png"
56
56
  )
57
57
  puts response
58
+ end
59
+ def test_send_whatsapp_freeform_contact
60
+ # freeform contacts
58
61
  response = @client.whatsapp.send_whatsapp_freeform_message(
59
- originator= "91906154XXXX",
60
- recipient= "+91999999XXXX",
62
+ originator= "XXXXXXXXXXXX",
63
+ recipient= "+XXXXXXXXXXXX",
61
64
  message_type="CONTACTS", first_name="Amal", last_name="Anu", formatted_name="Amal Anu", phones=["91906152XXXX"], emails = ["amal@gmail.com"]
62
65
  )
63
66
  response = @client.whatsapp.get_status(request_id="81eca535-8131-4866-be18-b3d933604069")
@@ -84,5 +87,5 @@ class TestSERVICES < Test::Unit::TestCase
84
87
  caption= "Tet"
85
88
  )
86
89
  puts response
87
- end
90
+ # end
88
91
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: direct7
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Direct7 Networks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-11 00:00:00.000000000 Z
11
+ date: 2024-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -129,6 +129,7 @@ files:
129
129
  - direct7-0.0.10.gem
130
130
  - direct7-0.0.11.gem
131
131
  - direct7-0.0.12.gem
132
+ - direct7-0.0.13.gem
132
133
  - direct7.gemspec
133
134
  - doc/Direct7.html
134
135
  - doc/Direct7/AuthenticationError.html
@@ -2216,7 +2217,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
2216
2217
  - !ruby/object:Gem::Version
2217
2218
  version: '0'
2218
2219
  requirements: []
2219
- rubygems_version: 3.4.22
2220
+ rubygems_version: 3.3.5
2220
2221
  signing_key:
2221
2222
  specification_version: 4
2222
2223
  summary: Ruby SDK for Direct7 Platform REST API